Linux/scp

Recursive
scp -r local_path kenneth@remote_host:~/

Port
scp -P 9999 local_path kenneth@remote_host:~/

Copy path with spaces
scp -r myserver.com:"/path/with/a/Space\\ In\\ It" ./

scp -r myserver.com:"\"/path/with/a/Space In It\"" ./

scp kenneth@remote_host:"/my iso/en_ws_2003_ent_x64_vl.iso".

References:
 * How to SCP a path with spaces

sshpass
sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path
 * 1) password in history:

sshpass -f "/path/to/passwordfile" scp -r user@example.com:/some/remote/path /some/local/path
 * 1) password not in bash history:

ref: