How do I do Multihop SCP transfers between machines?

You can add -o options to scp instead of .ssh/config.

scp -o ProxyCommand="ssh $jump_host nc $host 22" $local_path $host:$destination_path

$jump_host is your “server B” in this case.

Leave a Comment

tech