Create a non-root user
- (“Instance state” > “Start instance” to resume)
- Copy “Public IPv4 DNS” (will be
$SERVER_ADDRESS
below)- something like “ec2-3-123-456-789.compute-1.amazonaws.com”
ssh -i ~/path/to/do4ds-lab-key.pem ubuntu@$SERVER_ADDRESS
sudo adduser test-user
- Give them a password
- Defaults ok for everything else
sudo usermod -aG sudo test-user
(a
dd toG
roup)