Last active
August 29, 2015 14:07
-
-
Save paulghaddad/0e33ed80956123e60652 to your computer and use it in GitHub Desktop.
Level UP 1: Transferring Files Between Boxes
This file contains hidden or 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
# SSH into remote host | |
ssh [email protected] | |
# SCP text file to remote host's tmp directory | |
scp phaddad.txt [email protected]:/tmp | |
# Delete local copy | |
rm phaddad.txt | |
# Move remote copy back to local machine | |
scp [email protected]:/tmp/phaddad.txt . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment