SCP file copy over ssh

Quick command:

scp <filename> user@<ip address of remote>:<target dir>

example:

scp MyLocalFile.tgz RemoteUser@RemoteServer:.

 

will copy file MyLocalFile.tgz  to home dir of user RemoteUser at RemoteServer

Copy whole directory:

scp -r /home/mydir RemoteUser@RemoteServer:.

Comments are closed.