Created
July 23, 2015 18:06
-
-
Save sooshie/bd6db7f3577e23e7c022 to your computer and use it in GitHub Desktop.
SSH notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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