AWS - Connect to EC2 Instance Over SSH
In the previous blog post I showed you how to create an EC2 instance
In this blog I will show you how to connect to that instance over SSH. Although I'm using MacOS the steps should be similar across platforms.
In the next blog post I will show you how to terminate an EC2 instance. This is especially important if the instance is no longer in use and you want to avoid unnecessary charges:
In this blog I will show you how to connect to that instance over SSH. Although I'm using MacOS the steps should be similar across platforms.
![]() |
Select the EC2 instance you want to connect to then click Connect |
![]() |
Copy the chmod command in the window then open a terminal, change directory to the directory you saved the .pem file in the previous blog post and paste the command |
![]() |
Copy the SSH command shown here |
![]() |
Paste the SSH command into the terminal and run it. Then type yes and hit enter |
![]() |
To update the instance type sudo yum update and hit enter |
![]() |
Type y and hit enter to finish the update |
In the next blog post I will show you how to terminate an EC2 instance. This is especially important if the instance is no longer in use and you want to avoid unnecessary charges: