Skip to content

Instantly share code, notes, and snippets.

@GitSumito
Last active April 30, 2020 04:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GitSumito/80e2d091ffea8a1ab19003aaa4bcc33d to your computer and use it in GitHub Desktop.
Save GitSumito/80e2d091ffea8a1ab19003aaa4bcc33d to your computer and use it in GitHub Desktop.
ssh/scp多段接続〜踏み台サーバを越えて〜 ref: https://qiita.com/S-T/items/18af2bfcc4e5a72202da
scp -r -o "ProxyCommand ssh -i ~/.ssh/key ユーザー@踏み台 -W %h:%p" testdir ユーザー@送信先:/tmp/.
もしくは
scp -r -o "ProxyCommand ssh -i ~/.ssh/key ユーザー@踏み台 nc %h %p" testdir ユーザー@送信先:/tmp/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment