Unfortunately, the best SSH client for Windows also requires its own format. So the Windows steps will have two parts: A.) Generating the key, and B.) Using the key
Open up your browser and go to: http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Right-click and Save As the links for the latest installer. As of time of writing, it's putty-0.67-installer.msi
Execute the MSI file, and go through the installation. It should install a couple of programs, but we only need two: PuTTY and PuTTYGen
From the Start menu, choose All Programs > PuTTY > PuTTYGen.
Under Type of key to generate, select SSH-2 RSA.
Click on Load. By default, PuTTYgen displays only files with the extension .ppk
. To locate your .pem file, select the option to display All Files.
Go to the directory where you downloaded your Key Pair, open the file, and click on Open.
Choose Save private key to save the key in the format that PuTTY can use. PuTTYgen displays a warning about saving the key without a passphrase. Choose Yes.
Specify the same name for the key that you used for the key pair (for example, banana-smith-keypair
)
From the Start menu, choose All Programs > PuTTY > PuTTY
In the Category pane, select Session and complete the following fields:
Host: ec2-user@[PUBLIC IP]
Port: 22
Connection type: SSH
Make sure you replace [PUBLIC IP] with the Public IP of your EC2 instance. For example:
Host: [email protected]
Port: 22
Connection type: SSH
In the Category pane, expand Connection, expand SSH, and then select Auth.
Click on Browse. Select the .ppk
file that you generated for your key pair, and then choose Open.
In the Category pane, select Session. Enter a name for the session under Saved Sessions.
Choose Save.
Finally, that's all done. Click on Open to start the SSH session - it will display a security alert that you can safely ignore (at least for this session).