Access Amazon Elastic Compute Cloud (EC2) Remotely via SSH
Go to EC2 Dashboard then navigate to Intances
Select the instance then click Connect
button
A window pops up will show up with a few info about how to connect to an instance
NOTE: The key-pair example-key.pem
is generated when you first time launch an instance
Command to apply chmod 400
to key-pair
chmod 400 /path/to/example-key.pem
Command to connect to instance via SSH
ssh -i "/path/to/example-key.pem" user@public-dns-example.com
In this example, I use terminal ubuntu desktop to connect to EC2 instance
Successfully connect to instance