?

Log in

No account? Create an account
Thanks to matthew for extending my little persistant ssh script… - Artur Bergman [entries|archive|friends|userinfo]
Artur Bergman

[ website | O'Reilly Radar ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Mar. 22nd, 2006|10:31 pm]
Artur Bergman
[Tags|]
[Current Mood |tiredtired]

Thanks to matthew for extending my little persistant ssh script to work with ssh-agent

while [ 1 ]; do
ssh -A -o ServerAliveInterval=5 -o ConnectTimeout=5 $1 -t "ln -sf \$SSH_AUTH_SOCK ~/.ssh/agent_sock; SSH_AUTH_SOCK=~/.ssh/agent_sock; export SSH_AUTH_SOCK; screen -DR $2"
reset
done



so sweet!
LinkReply

Comments:
[User Picture]From: keltickolor
2006-03-25 02:51 am (UTC)
Think fast! Now, what does that code actually DO?
(Reply) (Thread)