In this post I’ll quickly show how to log into your Amazon Web Service instance remotely with the SSH client software PuTTY and PuTTYgen (Windows). You can download PuTTY at the official website here. You will also need software to generate the .ppk file needed to authenticate with the server. PuTTYgen does this and is available on WinSCP’s website. These programs are free and open source.
When you create your instance, it should prompt you to create a .PEM file. Save this to your computer. Now open up PuTTYgen and load the .PEM file (select all files types). The parameters should be SHA-2 RSA and 2048 bits. Click save private key. You do not need a passphrase, but if security is a concern it can’t hurt to use one and write it down somewhere safe. Typically this is saved to your .ssh folder.
Now open PuTTY. Navigate through the hierarchy connection -> SSH -> Auth and click browse. Select the .PPK file you generated earlier. Then enter in the rest of your server’s information.
- default login name (“ubuntu” for Ubuntu, “ec2-user” for Amazon Linux) @ Public IP address (listed in Amazon dashboard)
- E..g, email@example.com
- Don’t forget to click save
Then click “open” and you should be see something like this
Click yes. You should be logged into the terminal remotely now. Congratulations, wasn’t that fun?