Created
July 27, 2016 14:22
-
-
Save taka2/14172b527d0ded077e3b9e3288625b37 to your computer and use it in GitHub Desktop.
sftpでポートフォワーディングを使わずに多段接続する方法
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
sftp -i mogekey -o "ProxyCommand=ssh -i hogekey -e none hoge@intermediatehost exec /usr/bin/nc %h %p 2>/dev/null" moge@targethost | |
# http://superuser.com/questions/262926/must-i-sftp-to-an-intermediate-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment