SECURE COPY (SCP): EXAMPLES OF HOW TO USE SECURE COPY

Examples of how to use Secure Copy (scp)

scp uses ssh for data file transfer between servers and provides the same level of security as ssh.

Secure copy the file “somefile.txt” from a remote host to your local host

 

Secure Copy your file “somefile.txt” from the local host to a remote host

 

Secure Copy the directory “localfoo” from your local host to a remote host’s directory “foobar”

 

Copy the file “foobar.dat” from remote host “remoteh1.com” to remote host “remoteh2.com”

 

Copying the files “foo.dat” and “bar.dat” from yor localhost to your home directory on the remote host

 

Copy the file “foobar.txt” from the local host to a remote host using port 2264

 

Copy multiple files from remote to your current directory on the local host

Or
 

Managing scp Performance

scp uses the Triple-DES cipher to encrypt the data being sent by default. By using Blowfish, as a cipher you may increase speed. Here is how.

If you have a slow connection you can use the -C option for compression to increase speed. If your connection is not slow, then this is not very helpful as it ads to the CPU burden.

 

Leave a Reply

Your email address will not be published. Required fields are marked *