Or copy link
Copy link
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
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)“.
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;
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.
Step 10: That you have successully logged into your instance using Putty via SSH. From here, you can execute our initialization scripts.
Enjoy!
To create private key, you may follow our article “How to create Private Key (.ppk) in AWS?”
In today’s data-driven landscape, the tools we use to...
What is a Private Key A private key is typically a lon...