Skip to content

Instantly share code, notes, and snippets.

@paulghaddad
Last active August 29, 2015 14:07
Show Gist options
  • Save paulghaddad/0e33ed80956123e60652 to your computer and use it in GitHub Desktop.
Save paulghaddad/0e33ed80956123e60652 to your computer and use it in GitHub Desktop.
Level UP 1: Transferring Files Between Boxes
# SSH into remote host
ssh cnuapp@local.dev.cashnetusa.com
# SCP text file to remote host's tmp directory
scp phaddad.txt cnuapp@local.dev.cashnetusa.com:/tmp
# Delete local copy
rm phaddad.txt
# Move remote copy back to local machine
scp cnuapp@local.dev.cashnetusa.com:/tmp/phaddad.txt .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment