Looking for pageant equivalent

5,566

Here are two utilities you should run one after the other.

The first evaluates for the private key you already used to authenticate into the server.

The second loads this key to the memory.

This way you could login anytime and anywhere in the current session, if the public key has been added to .ssh/authorized_keys*:

eval $(ssh-agent)
ssh-add

How it works:

ssh-agent is the authentication agent itself, whereas ssh-add is used to add your private keys to this agent.

You execute ssh-agent as an evaluation for your private key and then use the ssh-add command to actually add your private keys to this agent, for prolonged usage.

Share:
5,566

Related videos on Youtube

myusuf3
Author by

myusuf3

https://mahdiyusuf.com

Updated on September 17, 2022

Comments

  • myusuf3
    myusuf3 over 1 year

    I was wonder if there is an equivalent to pageant for Ubuntu. The Pageant tool load private keys for prolonged usage, so you won't have to load the keys (as well as heir passprhases, if there are any), each time anew.

    How could you achieve this in Ubuntu, and especially the Ubuntu CLI?

    • myusuf3
      myusuf3 over 13 years
      @Marco I was hoping to avoid that.
    • geirha
      geirha over 13 years
      The gnome-keyring that is installed by default does that, what functionality are you missing in that exactly?
    • myusuf3
      myusuf3 over 13 years
      @geirha, I am trying to do something with Jenkins CI