Skip to content

Instantly share code, notes, and snippets.

@darmawan01
Last active June 25, 2021 07:04
Show Gist options
  • Save darmawan01/25533efee4c173ac9ddfd1538897e9bf to your computer and use it in GitHub Desktop.
Save darmawan01/25533efee4c173ac9ddfd1538897e9bf to your computer and use it in GitHub Desktop.
SCP or RSYNC over Jumphost

SCP Over :

scp "ProxyCommand ssh <jumphost> -W %h:%p" <src> <dest>

RSYNC Over :

rsync -azv -P -e 'ssh -o "ProxyCommand ssh -A <jumphost> -W %h:%p"' <src> <dest>

  1. <jumphost> - Change with your jumphost
  2. <src> - Change with your source
  3. <dest> - Change with your destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment