SHARE

Scp is very much useful tiny tool in linux for securely copying file between remote host.Only you need to know is username and password  of remote/destination host.

To run this tool.Follow these steps.

Type following command :

scp scptest.tar.gz root@192.168.111.103:

Explanation:

scptest.tar.gz is the file which you want to send/transfer to remote host (192.168.111.103).

root is the username of remote host.

192.168.111.103 is the ip address of remote host .

: stands for remote host completion or can say that file will be copied in root directory of remote host.

Then you will ask for password. Give password of root of remote host.

For recursively copying files/folder,

scp  -r scptest.tar.gz root@192.168.111.103:

scp filename username@destination host addresss :

for eg.

scp-command-linux

 

 

 

Screen shot