Skip to content

Instantly share code, notes, and snippets.

@reanim8ed
Created January 8, 2021 14:02
Show Gist options
  • Save reanim8ed/9d64a9616173a1f41a0eb245f4a536f8 to your computer and use it in GitHub Desktop.
Save reanim8ed/9d64a9616173a1f41a0eb245f4a536f8 to your computer and use it in GitHub Desktop.
[Copy directory via ssh to PC] #linux #ssh
  • If you want to copy a directory from machine a to b while logged into a: scp -r /path/to/directory user@ipaddress:/path/to/destination

  • If you want to copy a directory from machine a to b while logged into b: scp -r user@ipaddress:/path/to/directory /path/to/destination

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