Skip to content

Instantly share code, notes, and snippets.

@mujahidi
Last active March 4, 2019 20:57
Show Gist options
  • Save mujahidi/4bf8442d48af3f8a770f4bcec0d56bc0 to your computer and use it in GitHub Desktop.
Save mujahidi/4bf8442d48af3f8a770f4bcec0d56bc0 to your computer and use it in GitHub Desktop.
Download/Upload file/folder through terminal commands
#Download File
scp user@host:/path/to/remote-file-to-download local-copy-of-file
#Download Folder
scp -r user@host:/path/to/remote-folder-to-download local-copy-of-folder
#Upload File
scp local-file user@host:/path/to/destination-where-local-file-is-uploaded
#Upload Folder
scp -r local-folder user@host:/path/to/destination-where-local-folder-is-uploaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment