Constantly asked for SSH keys' password

Hey guys,

I am constantly asked for SSH keys’ password. Say I do a push in a git repo. Then immediately after, if I try to do another push, it will re-ask for my password, which is really annoying. I would like for it to remember it, somehow.

What software do you use for this?



eval `ssh-agent`
ssh-add /path/to/ssh-key

It should ask you for your password once than just work after that.

1 Like

By ssh-agent, you mean this, right?:

extra/keychain 2.8.5-2 [23.20KB 53.80KB] [Installed]


Ya, this works. Though after doing a git push, the key should be added to the keychain automatically. Is there no way to have the keys added to the keychain automatically, without having to do ssh-add and inputing the password everytime I login?

Just to be clear, are you saying you want to never have enter a password when you use that ssh key?

If so, you could just remove the password from the ssh-key. It obviously lowers the security but so does never entering a password.

No. I want to enter the password exactly once, the first time I use it. I use the key for the first time since I logged in, it asks for password. After that, it shouldn’t ask for password until I relog.

That is slightly different than calling ssh-add before using the key.