Skip to content

Instantly share code, notes, and snippets.

@sholloway
Created October 5, 2012 13:57
Show Gist options
  • Save sholloway/3839920 to your computer and use it in GitHub Desktop.
Save sholloway/3839920 to your computer and use it in GitHub Desktop.
dowloading and uploading files with scp
Usage:
scp [options] [[user@]host1:]filename1 ... [[user@]host2:]filename2
Where:
[[user@]host1:]filename1 is the source file and path, and [[user@]host2:]filename2 is the destination.
Upload Example:
scp ./myfile username@ipaddress:/Users/dest_user/remote_path/new_file_name
Download Example:
Upload Example:
scp username@ipaddress:/path/to/remote/file local/path/new/file/name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment