How to copy a local directory or file to a remote machine or another remote machine

Local Directory to Remote Machine:
scp
/path/to/local/dir usrname@hostname:/path/to/remote/dir


Remote Machine to Local Directory
scp username@hostname:/path/to/remote/file /path/to/local/file

Remote Machine to Remote Machine
scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file


You cannot comment on this entry