How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?

Posted by Shwouchk on Super User See other posts from Super User or by Shwouchk
Published on 2013-07-02T14:23:31Z Indexed on 2013/07/02 23:09 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

I have a screen session open in an lxterminal window. If I SSH somewhere, the first time it happens, an ssh-agent window opens and asks me for my private key passphrase, and after that ssh goes right on. If I log in from outside to this machine and attach to the screen session however, ssh-agent now asks me every time I connect for my passphrase, in the terminal. Is there a way to avoid this and to let it continue using the X agent, or at least to have the non-X agent remember the passphrase?

© Super User or respective owner

Related posts about linux

Related posts about ssh