Skip to content

Instantly share code, notes, and snippets.

@carlwoodhouse
Created January 23, 2014 16:04
Show Gist options
  • Save carlwoodhouse/8581198 to your computer and use it in GitHub Desktop.
Save carlwoodhouse/8581198 to your computer and use it in GitHub Desktop.
scp cheat sheet
# copy from local machine to remote machine
scp localfile user@host:/path/to/whereyouwant/thefile
# copy from remote machine to local machine
scp user@host:/path/to/remotefile localfile
@zhisme
Copy link

zhisme commented Feb 5, 2018

# copy folder from local machine to remote machine
scp -r localfolder/* user@host:/path/to/whereyouwant/thefile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment