Skip to content

Instantly share code, notes, and snippets.

@sandheepg
Created March 8, 2017 05:27
Show Gist options
  • Save sandheepg/02333bcadb7395515f3ba3f6c526613d to your computer and use it in GitHub Desktop.
Save sandheepg/02333bcadb7395515f3ba3f6c526613d to your computer and use it in GitHub Desktop.
Copy remote folder to local machine

To copy a folder in the remote server to your local machine,

scp -r username@IPaddres:/remote/directory/path /local/folder/

In case you wish to copy in your current local directory

scp -r username@IPaddres:/remote/directory/path/ .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment