Artur Bergman (crucially) wrote,
Artur Bergman
crucially

  • Mood:
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!
Tags: lifehack
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment