I am sure you have already seen the official How to document on Amazon Web Services website how to use PuTTy in order to connect from Windows machine to your Amazon EC2instance. In my opinion it is not the easier how to I have seen. Good news here, there is another FREE and paid software that you can use to connect from Windows machine to Amazon EC2 instance over ssh without extra steps and directly with using your Key.pem file.
Say hello to MobaXterm – you can download installation package or you can juts use stand alone app on your desktop. The tool is not ONLY for supporting ssh but also you can use it to multiple machines over VNC, RDP. It is very rich application with many options and features.
MobaXterm is an enhanced terminal for Windows with an X11 server, a tabbed SSH client and several other network tools for remote computing (VNC, RDP, telnet, rlogin). MobaXterm brings all the essential Unix commands to Windows desktop, in a single portable exe file which works out of the box. There two version Personal with some limitations and Professional.
How to use it to connect to EC2:
- copy your Amazon key.pem file and save on on C: drive
- Open MobaXterm
- issue cd C: to navigate to C: drive root
- now you can simply issue a command to connect to EC2 as bellow
cd C: ssh -i MyAmazonKey.pem firstname.lastname@example.org
If you entered correct name for your pem file and user name with public IP for your EC2, you should be by now connected to yourAmazon EC2 instance and do all your task as you need.