Here we are going to explain about Â the Â procedure toÂ Connecting to Amazon AWS from Windows to a Linux AMI via putty or winscp. There are two ways by which you can connect, First isÂ putty, the ssh connection and Â the second isÂ Â Winscp.
The first one will enable you to get the terminal and the second will enable you to get winscp as you can upload and download files on your server.
First You should have your private key from Amazon when you first started up your AMI. Find the Private key you downloaded from Amazon Then you need to convert this file from .pem to .ppk as winscp read only .ppk files. For that you need to download PuttyGen program from putty download page. (chiark.greenend.org.uk/~sgtatham/putty/download.html) and run this programe as shown below.
click on load and select the key pair which you haveÂ downloadedÂ form Aws. Â you will get a window like below onÂ successful import of pair key.
Now you have to click on save private key as shown below.
save this as with a name .
Now open your winscp as shown below
On the host name you have to enter your ip address of the server, if you are using elastic ip or you should go to your AWS dashboard and clcik on the server on which you want to connect andÂ clickÂ on instance action button as shown in the below screenshot.
Now youÂ clickÂ on the connect button where you can find your public Dns as shown in the below screenshot.
You should copy everything after the @ symbol so that what you have looks like this
ec2-50-16-5-228.compute-10.amazonaws.com. Now you have to fill the information like shown below screenshot.
Remember that your Private Key file is the key you converted in PuttyGen. Click on Login and you will connect to your Amazon EC2 instance. If you are not able to connect then under File protocol select scp as shown in the below screenshot.
In WinSCP on the top command ribbon bar you should see two icons as shown below. To get to the Command Line in Linux you want to click on the putty tab Â on the top command ribbon shown below.
I think this will launch the Putty command shell that will allow you to tool around the Amazon AMI.
We welcome your comments.