Looking for pageant equivalent
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.
Related videos on Youtube
Comments
-
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 over 13 years@Marco I was hoping to avoid that.
-
geirha over 13 yearsThe gnome-keyring that is installed by default does that, what functionality are you missing in that exactly?
-
myusuf3 over 13 years@geirha, I am trying to do something with Jenkins CI
-