Created
July 20, 2015 07:19
-
-
Save MnMTech/94f07a44dcd79f959dac to your computer and use it in GitHub Desktop.
Copy directory to server over SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -cz . | ssh -i /path/to/local/key/file.pem user@hostname -- 'tar -C/the/remote/path/to/target/folder -xz' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment