# Copy from machine a to b
scp -r /path/to/directory user@ipaddress:/path/to/destination
# Copy from machine b to a
scp -r user@ipaddress:/path/to/destination /path/to/directory
scp -r user@your.server.example.com:/path/to/foo /
scp -r username@IP:/path/to/server/source/folder/ .