Quantcast
Viewing all articles
Browse latest Browse all 10

How to Automatically Login with Putty

Like most of my articles, this one was written as a reminder to myself.

How to Setup Putty to Automatically login.

  1. Download PuTTY — Use this link or Google putty. Be sure to download.  I would suggest this version – A Windows installer for everything except PuTTYtel
  2. Install Putty by double clicking
  3. Run PuTTYgen following the instructionsImage may be NSFW.
    Clik here to view.
    puttygen1
  4. Save your private key somewhere secure but also a place you will remember it.
  5. Copy / CTRL -C the public key for pasting into the authorized_keys file
  6. Remember dont select a passphrase if you want to login automatically
    Image may be NSFW.
    Clik here to view.
    puttygen2
  7. Go to your .ssh folder  in the root directory of your webhost — type cd .ssh. Almost all hosting providers have these.
  8. If  you dont have a file called authorized_keys in the .ssh folder you will need create one.
    Make it readable only by you type chmod 644.
    Image may be NSFW.
    Clik here to view.
    puttygen3
  9. Paste the content from puttygen on a newline the authorized_keys if there is already an entry.
    Image may be NSFW.
    Clik here to view.
    puttygen4
  10. Then you can either use Pageant ( included with Putty Details Below ) and load your private key in memory or goto Connection->SSH->Auth and under Private-key, browse to the file you had saved earlier on your computer.   I would recommend instead using Pageant.  I know, sounds like a pain doing all of this but it will save you some serious time login .  Again  Pageant recommended see below.
  11. Be sure to type in your connection name always as username@website.com.  You can automatically login but the system needs to know what user you will login as.

Details on Pageant:

Getting started with PageantTo add a key to Pageant, press the ‘Add Key’ button. Pageant will bring up a file dialog, labelled ‘Select Private Key File’. Find your private key file in this dialog, and press ‘Open’.

Pageant will now load the private key. If the key is protected by a passphrase, Pageant will ask you to type the passphrase. When the key has been loaded, it will appear in the list in the Pageant window.

Now start PuTTY and open an SSH session to a site that accepts your key. PuTTY will notice that Pageant is running, retrieve the key automatically from Pageant, and use it to authenticate. You can now open as many PuTTY sessions as you like without having to type your passphrase again.


Viewing all articles
Browse latest Browse all 10

Trending Articles