facebook youtube pinterest twitter reddit whatsapp instagram

Using Pageant To Automatically Authenticate SSH key in Putty

I can't count how many times I have typed my ssh key passphrase whenever my ssh connection times out, it is so annoying and repetitive.

Well, thanks to the putty pageant, you can do that seamlessly. The pageant is an SSH authentication agent. It holds your private keys in memory, already decoded so that you can use them often without needing to type a passphrase.

The good thing about this agent is that you can add as many keys as possible, and when you 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 would be able to open as many PuTTY sessions as you like without having to type your passphrase again. 

To get started, open the pageant program in your putty program directory.

When you run Pageant, it will put an icon of a computer wearing a hat into the System tray:

1. pageant icon tray with hat

This won't do anything, so, you would want to load a private key into it.

Right-click the pageant icon, and select the Add key button. 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.

To view the key you've added, right-click the pageant icon, and select view:

2, Pageant key list

You can add more key if you want.

Now start PuTTY and open an SSH session to a site or server that accepts your key.

The key would be automatically retrieved from Pageant, and authenticate. You can now open as many PuTTY sessions as you like without having to type your password again.

Related Post(s)

  • Send Mail with Attachment Using Mutt in GNU/Linux

    Mutt is a powerful text-based mail client for Unix/Linux operating systems. It features color support, message threading, MIME support...

  • How To Send Mail To Multiple Addresses Using (mailx)

    In this guide, you'll learn a couple of ways you can send mail to multiple addresses using mailx. mailx is a utility program for sending and receiving mail. I assume you already have mailx command, i

  • Test Your Internet Download Speed from Terminal Using (Fast)

    Fast is a tiny utility program for testing your internet download speed from the terminal, to get started, you simply install via the snap store (Ubuntu): sudo snap install fast If you don't have sna

  • Access A Web Page In GNU/Linux Using (Links) [Web Browser in Text Mode]

    Links is a text-mode World Wide Web (WWW) browses that can be used to view a web page either via a local (file://) or remote ((http:// or ftp://) URLs. To get started with Links, install it using the

  • Synchronize File With Cloud Storage Using [Rclone] In (GNU/Linux)

    Rclone is an open-source command-line program to sync files and directories to and from different cloud storage providers. It preserves timestamps, and if you are transferring from local to cloud, it

  • How To Find Files Using Locate in Ubuntu

    It's kind of frustrating when you are searching for a particular file, and you have no idea of how to find it, In this guide, I'll walk you through on two different ways you can find a file in your G