SSH to EC2 instance

Click to Connect button

There are 3 ways:

Use a standalone SSH client

# use public IP
ssh -i developer-course-kp.pem [email protected] 
# or use public DNS
ssh -i developer-course-kp.pem [email protected]

SSH troubleshooting

There's a connection timeout

This is a security group issue. Any timeout (not just for SSH) is related to security groups or a firewall. Ensure your security group looks like this and correctly assigned to your EC2 instance.

Permission denied

I was able to connect yesterday, but today I can't

This is probably because you have stopped your EC2 instance and then started it again today. When you do so, the public IP of your EC2 instance can change. Therefore, in your command, or Putty configuration, please make sure to edit and save the new public IP.

Security Groups