SCP : Secure file transfer over the network

SCP : Secure file transfer over the network

SCP, for Secure CoPy, is an SSH based software that allows you to copy files between UNIX/Linux machines.

It is included in OpenSSH and the SSH daemon on all mayor Linux & *BSD distributions, listening on port 22 by default.

Usage

SCP works like the well known command “cp”, by adding the required network information (IP, FQDN).

scp /my/file.txt [email protected]:~

This will copy the file “file.txt” in the home folder of the user “myuser” to the remote server.

It is also possible to use it the inverse way:

scp [email protected]:~/file.txt /my/

This will copy the remote file to the local disk.

Recursion

SCP allows to do recursive copies. Basically this means to copy all its content instead of launch the copy file by file.

Below an example:

scp -r /my [email protected]:~

We will now find the directory “my” available in the remote home folder.

As previously seen, this works also the inverse way:

scp -r [email protected]:~/my /

If you are interested in more information, feel free to read the manpage of scp. It offers a lot of other functionalities:

man (1) scp

Was this answer helpful?

 Print this Article

Also Read

DELL iDRAC controller

DELL iDRAC controller The servers made by DELL include the technology of the controller Dell...

KVM over IP DEDICATED SERVER (PRO VIP1- PRO VIP2 -PRO VIP3-PRO VIP4) & (Ult1-Ult2-Ult3)

KVM over IPDEDICATED SERVER (PRO VIP1- PRO VIP2 -PRO VIP3-PRO VIP4) & (Ult1-Ult2-Ult3) The...

Controller HP iLo

Controller HP iLo The servers manufactured by HP contain the controller iLO3 Advanced. This...

Installation from the KVM HP ILO (install custom system with kvm)

Installation from the KVM HP ILO   Retrieve your ISO To install your own operating system...

Powered by WHMCompleteSolution