1. Copy files from your server to a remote server

scp -P -r <dir_name> user@remotehost:<remote_dir></remote_dir></dir_name>

<dir_name><remote_dir> 2. Copy files from remote server to your machine</remote_dir></dir_name>

<dir_name><remote_dir> scp -P -r user@remotehost:<remote_dir><local_path></local_path></remote_dir></remote_dir></dir_name>

<dir_name><remote_dir><remote_dir><local_path>3.Copy files from remote server to remote server </local_path></remote_dir></remote_dir></dir_name>

<dir_name><remote_dir><remote_dir><local_path>scp -P -r user@sourcehost:<source_dir>user@desthost:<dest_dir></dest_dir></source_dir></local_path></remote_dir></remote_dir></dir_name>