Securely copy folders between UNIX Machines

You will be prompted for a password after issuing this command.

# to copy directory from remote to local machine
scp -r user@domain.com:/remote/directory/to/copy/* /local/destination

# to copy directory from local to remote machine
scp -r /local/directory/to/copy/* user@domain.com:/remote/destination
Snippets and tagged