Skip to content

Instantly share code, notes, and snippets.

@sooshie
Created July 23, 2015 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sooshie/bd6db7f3577e23e7c022 to your computer and use it in GitHub Desktop.
Save sooshie/bd6db7f3577e23e7c022 to your computer and use it in GitHub Desktop.
SSH notes
scp -o ProxyCommand="ssh -A $user1@$host1 nc $host2 22" -r localdir/ $user2@$host2:/remote/directory
ssh -A $user1@$host1 -t ssh $user2@$host2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment