fields marshall

Website Optimization and Consulting

  • Home
  • Services
  • Contact
You are here: Home / techtips / How to Automatically Login with Putty

How to Automatically Login with Putty

April 15, 2009 by fields.marshall

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 instructionsputtygen1
  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
    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.
    puttygen3
  9. Paste the content from puttygen on a newline the authorized_keys if there is already an entry.
    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.

Filed Under: techtips

Father to two kids, Web Designer and Programmer Living in Chile Read More…

Pages

  • About Me
  • Contact
  • Services
  • SiteMap

Recent Posts

  • Redirects for Affiliate Links
  • Split Testing Software
  • Installing Analytics on a Large Website
  • 8 Tips for Tracking With Google
  • All You Ever Need To Know About SEO

Blogroll

  • Chile Yoga Retreats — http://avaniyogaretreats.com/
  • Spiritual Retreats
  • Taxi Chiguayante Chile

Copyright © 2022 · Fields Marshall on Genesis Framework · WordPress · Log in