Activities

April 2012
M T W T F S S
« Mar   May »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

SSH auto login to linux server from Windows using Putty.

I’m using windows desktop and always half part of the screen is filled up with many puty screens. Sometimes I have to be logged for long time and sometimes not. I frequently disconnected as the my router device wil terminate the tcp connection which is idle more than 5 minutes. it’s so sad :-(.

So I have many number of “putty logins” in a day which required to open/run the putty application, find the exact password from file etc which is a kind of disturbance 🙂 I think. Now I want to save the effort, faster sever access and minimize the time spend for this putty logins.

1. Generate the public key and private key files.

Download PuTTYgen.exe from here and run the application. Click on generate button to generate both private and public key. Copy the public key to clipboard shown on the screen. Also save the private key in a secure location on your drives. This key is require for the file authentication

Pls note anyone can login to the server using this private file with the assumption of user and server ip.

2. Storing public key in Server.

SSH login to the server to which you access without login and create authorization file (“~/.ssh/authorized_keys“) and copy the clip board content which had copied the public key.

[root@rc-090 ~]# vi ~/.ssh/authorized_keys

That’s it . All are rest.

Login to remote linux machine,
3. Connecting server using putty

Download putty and run it.

Now you need to give

a. host name including user name and the server name.
b. Label for storing this login details.
c. Choose the private key file and save the label. See the screen,


You will see the following screen once you logged in to the server,

1 comment to SSH auto login to linux server from Windows using Putty.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>