Can I re-attach SSH key forwarding through a disconnected Screen session?

Posted by David Mackintosh on Super User See other posts from Super User or by David Mackintosh
Published on 2012-06-19T14:37:06Z Indexed on 2012/06/19 15:18 UTC
Read the original article Hit count: 198

Filed under:
|

I have a laptop on which I have pageant (the PuTTy SSH key agent) running. If I ssh to a system and launch screen, the ssh key forwarding works properly.

However, if I disconnect from that screen session, log off, then later reconnect -- the key forwarding doesn't work any more. I am presuming that this is because when I reconnect the key forwarding is set up on different ports for the new ssh session than was the old one.

Is there a way to teach an individual screen window to reconnect to the agent forwarding so that I can use my key to forward again?

© Super User or respective owner

Related posts about ssh

Related posts about screen