Connect to an AWS EC2 Instance via SSH

InstructorSam Julien

Share this video with your friends

Send Tweet

When you hit the connect button to your instance, AWS actually gives you instructions and copyable commands for you to run to connect to your instance.

After connecting to your instance you will have access to a real live server! From there, the first thing you'll almost always want to do is check for updates and upgrade them using sudo apt update and sudo apt upgrade

Prateek Lal
~ a year ago

Hi Sam, when I am trying to connect using SSH command, it says connection refused to me. I didn't expose http and https in the security groups like you did because it wasn't creating the instance if I did that.