how to login in aws server with putty using private key

4
This document describe how to login in AWS server with putty using private key If we follow the guideline provided by AWS to login there server using ssh as mentioned below 1. Open the SSH client of your choice (e.g., PuTTY, terminal). 2. Locate your private key file, zimbra22.pem 3. Use chmod to make sure your key file isn't publicly viewable, ssh won't work otherwise: chmod 400 zimbra22.pem 4. Connect to your instance using its Public DNS [ec2-46-137-233-12.ap-southeast-1.compute.amazonaws.com]. Example Enter the following command line: ssh -i zimbra22.pem [email protected] we get the following message “Enter passphrase for key……” To resolve this issue I use putty in Ubuntu and convert the .pem file to putty file format which is .ppk because putty cannot recognize the .pem file type. I have already converted this file in .ppk and attached with this mail, please download this file and save in document or any appropriate directory. I’m describing the procedure to connect AWS server using putty step by step as mentioned below:

Upload: dibpal

Post on 02-Jan-2016

12 views

Category:

Documents


1 download

DESCRIPTION

How to Login in AWS Server With Putty Using Private Key

TRANSCRIPT

Page 1: How to Login in AWS Server With Putty Using Private Key

This document describe how to login in AWS server with putty using private key

If we follow the guideline provided by AWS to login there server using ssh as mentioned below

1. Open the SSH client of your choice (e.g., PuTTY, terminal).

2. Locate your private key file, zimbra22.pem

3. Use chmod to make sure your key file isn't publicly viewable,

ssh won't work otherwise:

chmod 400 zimbra22.pem

4. Connect to your instance using its Public DNS

[ec2-46-137-233-12.ap-southeast-1.compute.amazonaws.com].

Example

Enter the following command line:

ssh -i zimbra22.pem [email protected]

we get the following message “Enter passphrase for key……”

To resolve this issue I use putty in Ubuntu and convert the .pem file to putty file format which is .ppk

because putty cannot recognize the .pem file type. I have already converted this file in .ppk and attached with this mail, please download this file and save in document or any appropriate directory.

I’m describing the procedure to connect AWS server using putty step by step as mentioned below:

Page 2: How to Login in AWS Server With Putty Using Private Key

Steps

01. First we need to install putty in Ubuntu which is very easy task just type the following command in terminal window # sudo apt-get install putty

This takes few seconds to install the putty on your system.

02. Now open Putty and type the Host name as shown in below screenshot

Page 3: How to Login in AWS Server With Putty Using Private Key

03. Now go to Connection ->Data -> and type root in Auto-login username field as shown in below screenshot

04. Now go to SSH->Auth-> Click on browse button in Authentication parameters section and give the .ppk file Path as shown in below screenshot.

Page 4: How to Login in AWS Server With Putty Using Private Key

05. Now go to back on Session and save the session and give any name e.g. AWS Server. Then click on Open button and here is command prompt as shown in below screenshot. Now you have successfully login in the server with secure ssh channel!!!

Thanks

Dibyendu Pal