Skip to content

Instantly share code, notes, and snippets.

@hisplan
Created March 2, 2017 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hisplan/697c4b455287290b6b6ace16c309362c to your computer and use it in GitHub Desktop.
Save hisplan/697c4b455287290b6b6ace16c309362c to your computer and use it in GitHub Desktop.
Rsync with a non-standard ssh port
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment