Last active
April 30, 2020 04:48
-
-
Save GitSumito/80e2d091ffea8a1ab19003aaa4bcc33d to your computer and use it in GitHub Desktop.
ssh/scp多段接続〜踏み台サーバを越えて〜 ref: https://qiita.com/S-T/items/18af2bfcc4e5a72202da
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 -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