You are not logged in.
Hello,
I've been unable to find a solution that works to my probelm :
I have added my only ssh key to the ssh-agent. I use that key to pull and push to my Github repos but the thing is it asks me "Enter passphrase for /home/sweenu/.ssh/id_rsa:" every time I boot my computer...
As I don't always code, I usually don't need to use the key so I'd like a way for the ssh-agent to ask me for the password only if I do push or pull. (Or worst case, don't ask me at all)
Thanks!
Last edited by Sweenu (2017-03-15 17:50:16)
Offline
There's a solution on wiki... I believe it's about unlocking the keyring on login.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Moving to NC...
Offline
Thank you for your answer! t
The wiki does indeed show how to start the agent on login but what I'd like to have is for the agent to start only if I try using the key (by pulling or pushing to Github).
Maybe it is just not possible. If that's the case, is there another tool that'd let me do that ?
Offline
I recall having issues with this in the past, I now have this 2 lines in my .xinitrc
When I start ssh connection, I get a popup screen, fill in the PW for the key, and I'm done for this session, hope it helps you.
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export SSH_AUTH_SOCK DBUS_SESSION_BUS_ADDRESS
Offline
This only happens if you have a keyring/chain of some sort running. Presumably, you are using a DE that does that for you.
Offline
I recall having issues with this in the past, I now have this 2 lines in my .xinitrc
When I start ssh connection, I get a popup screen, fill in the PW for the key, and I'm done for this session, hope it helps you.eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) export SSH_AUTH_SOCK DBUS_SESSION_BUS_ADDRESS
Thank you for the tip, however, I don't use a desktop environment so it won't work for me (I guess?)
This only happens if you have a keyring/chain of some sort running.
I'm not sure what keyring or chains are but you tell me I should look into that to solve my problem ?
Offline
I'm using i3 ...
edit:
@jasonwryan, your right, there must have been something wrong with my setup when I started using that lines, I changed it to use the if statement from the wiki, works fine right away
Last edited by qinohe (2017-03-15 12:58:46)
Offline
My point was that, if you are not running a DE, then it is something that you must have either explicitly or unwittingly set up. Look through your shell initialisation files for what is starting the agent or keychain or whatever Gnome calls it (seamonkey?).
Offline
Thank you!
That was indeed the problem. I'm running zsh with zim and it had a module that autoloaded the ssh-agent... That is why the problem wasn't that common.
Anyway, it's perfect now, thanks again.
Offline