How to SSH into AWS instance?

SSH into your instance

Many of our clients asked and requested to have a quick guide on how to SSH into AWS EC2 and execute our initialization script flawlessly.

And, here you go.

Step 1: Under AWS outbound security group, make sure you have opened port 22. Port 22 is required for SSH.

Step 2: Download (https://www.putty.org/) and install Putty.

Step 3: Start Putty and go to “Session” and you will see the screenshot below

Click to enlarge

 

Step 4: Go your AWS instance, copy the public IP

Step 5: At Putty, go to “Session” and enter the AWS public IP into “Host name (or IP address)“.

Click to enlarge

 

Step 6: Then go to “Connection” > “SSH” expand the tree, and select “Auth“;

Step 7: Click “Browse“, and select your private key (example: yourkey.ppk). Then click “Open” to connect.

Step 8: If your instance is successfully connected via SSH, a prompt of “login as:” will appear like screenshot below;

Click to enlarge

Step 9: Enter your username (normally it is ec2-user) and you will be able to directly go into your instance command prompt; as you have provided the private key earlier.

Click to enlarge

Step 10: That you have successully logged into your instance using Putty via SSH. From here, you can execute our initialization scripts.

Enjoy!

 

How to create Private Key

To create private key, you may follow our article “How to create Private Key (.ppk) in AWS?”

 

 

 

Rate the article

Related Post

Data Ownership and Privacy is Critical for businesses leveraging AI. Photo by Dayne Topkin

Matomo 5 vs. Google Analytics: AI-Powered Pri...

In today’s data-driven landscape, the tools we use to...

How to create Private Key (.ppk) in AWS?

What is a Private Key A private key is typically a lon...