SCP Cheatsheet

Usage

scp <options> source_path destination_path

Copy local to remote

scp file user@host:/path/to/file

Copy remote to local

scp user@host:/path/to/file /local/path/to/file

Cope multiple files local to remote

scp file1 file2 user@host:/path/to/directory

Copy directory to remote

scp -r /path/to/directory user@host:/path/to/directory