First install the necessary tools
From this site (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html), install Putty and PuttyGen.
From this site (http://winscp.net/eng/index.php), install WinSCP.
Convert the PEM file to a PPK file
When you created the EC2 instance, you were given a private key file (extension: .pem). This private key file is in a form called PEM – “Private Enhanced Mail”. Putty cannot work with PEM files. Putty uses a different format called PPK. You can convert the PEM to PPK file using Puttygen.
- Run Puttygen.
- From the menu option “Conversions”, select “Import key”
- In the dialog, locate the pem file and “Open” it.
- Change the comment from ‘imported-openssh-key” to a something more descriptive like “my-db-server”
- Optional: Enter a passphrase.
- Create PPK file by clicking on “Save private key”
Connect to the server using WinSCP
- Run WinSCP
- In the Login dialog, click on the “New” button
- Enter the “Host” name or IP address
- Enter “User name” (ec2-user, root etc.)
- Select the PPK file in box “Private key file”
- Click on “Save…” and give it a descritive name like “my-db-server”
- Close and run WinSCP again, this time select server name and click in the “Login” button
Connect to the server using Putty
- Configure WinSCP to invoke Putty
- Goto “Options->Preferences”
- Select “Integrations/Applications”
- Locate putty.exe and click on “OK”
- Restart WinSCP and login to the server.
- From the WinSCP toolbar click, on the Putty icon (usually 8th icon from the left)
- You should be now logged into the server using Putty.