Persisting/restoring ssh-agent across screen/tmux sessions 15 Aug, 2011 Persisting/restoring ssh-agent across screen/tmux sessions

As a heavy user of screen and now of tmux, I find it annoying that each time I disconnect the terminal and reconnect and then reattach to screen/tmux, I find that inside the screen/tmux sessions, SSH_AUTH_SOCK variable is stale: it does not point anymore to the ‘current’ agent.pid file. So, here is a script to fix that: https://github.com/scharan/Goodies/blob/master/ssh-agent-restore



Tags  ·   screen  ·   ssh-agent  ·   SSH_AUTH_SOCK  ·   tmux  ·   Show Comments ▾


     
Original design for Tumblr crafted by Prashanth Kamalakanthan.
Adapted for Tumblr & Jekyll by Sai Charan. Customized theme available on Github.

Sai Charan's blog by Sai Charan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Creative Commons License