How to SSH AWS EC2 instance?
How to SSH AWS EC2 instance?
1.2.1. We are going to use putty to SSH into EC2
1.2.2. Download Putty and Install (https://www.putty.org/)
1.2.3. To connect using Putty we required .ppk file.
1.2.4. Let’s create .ppk file using .pem file generated in Step 1.1.5
1.2.5. Click on PuTTYgen -> File > Load Private Key -> select .pem file created in Step 1.1.5 -> Save Private Key -> Yes -> Save create ppk file in secure location
1.2.6. Open
1.2.5. Click on PuTTYgen -> File > Load Private Key -> select .pem file created in Step 1.1.5 -> Save Private Key -> Yes -> Save create ppk file in secure location
1.2.6. Open Putty
1.2.7. Enter Hostname as EC2 public IPv4 DNS (ubuntu@hostname as Ubuntu is default username)
1.2.8. Expand SSH > Auth and select Private key file for Authentication (.ppk file generated in 1.2.5)
1.2.9. Click on Open to start SSH
1.2.10. Enter sudo su – to get root access
Comments
Post a Comment