Skip to content

Instantly share code, notes, and snippets.

@taka2
Created July 27, 2016 14:22
Show Gist options
  • Save taka2/14172b527d0ded077e3b9e3288625b37 to your computer and use it in GitHub Desktop.
Save taka2/14172b527d0ded077e3b9e3288625b37 to your computer and use it in GitHub Desktop.
sftpでポートフォワーディングを使わずに多段接続する方法
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