Logging onto EC2
I tend to forget how to log onto EC2. This morning I spun up a few servers with an Ubuntu image on EC2. As soon as I tried to log on, I received a
Permission denied (publickey).
After doing a quick search I remembered I needed to add the username on the instance
ssh -i /path/to/keypair.pem ubuntu@ec2-instancename.compute-1.amazonaws.com
So simple.