SSH
ssh -J user@jumpbox user@target-host
ssh -J jumpbox1 jumpbox2 jumpbox3 target-host
SCP
download
scp -P 22 -o 'ProxyJump jumpbox' -r target-host:target-dir/target-file local-dir/local-file
scp -P 22 -o 'ProxyJump user@jumpbox -p 22' -r [email protected]:/tmp/file /home/user/file
scp -o 'ProxyJump user@jumpbox' -r [email protected]:/tmp/file /home/user/file
upload
scp -P 22 -o 'ProxyJump jumpbox' -r local-dir/local-file target-host:target-dir/target-file
scp -P 22 -o 'ProxyJump user@jumpbox -p 22' -r /home/user/file [email protected]:/tmp/file
scp -o 'ProxyJump user@jumpbox' -r /home/user/file [email protected]:/tmp/file
参考:https://blog.csdn.net/yulewo123/article/details/123978385
标签:jumpbox,跳板,target,22,user,file,scp,ssh From: https://www.cnblogs.com/zhaojli/p/16894089.html