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.
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?
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.
I have been dealing with similar issues and this is what I have found:
A walkthrough of some options on stackoverflow and it mentions using ssh-add ~/.ssh/id_rsa and adding your key that way for linux. There is a mention for macOS of ssh-add -K
I also checked out the Arch wiki and found some similar documentation for adding the key. But they mention running eval $(ssh-agent) to see if it brings up a number. I don’t fully understand that part yet since I have a number that pops up, but I might also check this out. Hope some of this helps, also seen some similar issues.
Thanks for the additional info. I’m still learning ssh for Devops and development stuff.
I know I’d like a similar setup to what I had on pop os where I never had to enter my key after a certain point. Now it’s every time I launch the terminal.
That said I need to double check but I believe that means your got commits get the verified badge that way.
I’m using Xfce, not i3wm, so the process may be somewhat different. However, with EOS, I found I had to install polkit-gnome. With that in, my first SSH login after a boot I get prompted tor the key password, after which it is automatically used until the next boot.