Skip to content

Instantly share code, notes, and snippets.

@viniciusdaniel
Created October 28, 2018 20:25
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 viniciusdaniel/ab3803aebad41267f3e8fc4b8bee28f4 to your computer and use it in GitHub Desktop.
Save viniciusdaniel/ab3803aebad41267f3e8fc4b8bee28f4 to your computer and use it in GitHub Desktop.
Best way to copy file across SSH
$ tar czf - <files> | ssh user@host "cd /wherever && tar xvzf -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment