0% found this document useful (0 votes)
49 views

Example Syntax For Secure Copy (SCP)

Scp allows copying files between hosts while providing the same authentication and security as ssh. It uses ssh for data transfer. Examples show how to copy files from local to remote hosts or between two remote hosts. For better performance, scp can use the blowfish cipher and compression with the -c and -C flags.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Example Syntax For Secure Copy (SCP)

Scp allows copying files between hosts while providing the same authentication and security as ssh. It uses ssh for data transfer. Examples show how to copy files from local to remote hosts or between two remote hosts. For better performance, scp can use the blowfish cipher and compression with the -c and -C flags.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Example syntax for Secure Copy (scp)1

What is Secure Copy?


scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Examples
Copy the file "foobar.txt" from a remote host to the local host $ scp [email protected]:foobar.txt /some/local/directory Copy the file "foobar.txt" from the local host to a remote host $ scp foobar.txt [email protected]:/some/remote/directory Copy the directory "foo" from the local host to a remote host's directory "bar" $ scp -r foo [email protected]:/some/remote/directory/bar Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh .edu" $ scp your_username@rh .edu:/some/remote/directory/foobar.txt ! your_username@rh".edu:/some/remote/directory/ Copyin! the files "foo.txt" and "bar.txt" from the local host to your home directory on the remote host $ scp foo.txt bar.txt [email protected]:# Copy multiple files from the remote host to your current directory on the local host $ scp [email protected]:/some/remote/directory/!$a,b,c!% . $ scp [email protected]:#/!$foo.txt,bar.txt!% .

scp "erformance
&y default scp uses the 'riple-()* cipher to encrypt the data bein+ sent. ,sin+ the &lowfish cipher has been shown to increase speed. 'his can be done by usin+ option -c blowfish in the command line.
http://www.hypexr.or+/linux_scp_help.php

$ scp -c blowfish some_file [email protected]:# It is often su++ested that the -C option for compression should also be used to increase speed. 'he effect of compression, however, will only si+nificantly increase speed if your connection is very slow. -therwise it may .ust be addin+ extra burden to the /0,. 1n example of usin+ blowfish and compression: $ scp -c blowfish -/ local_file [email protected]:#

You might also like