scp -P 2264 yourfile.txt [email protected]:/some/remote/directory
scp [email protected]:yourfile.txt /some/local/directory
scp yourfile.txt [email protected]:/some/remote/directory
scp [email protected]:/some/remote/directory/yourfile.txt [email protected]:/some/remote/directory/
scp file1.txt file2.txt [email protected]:/some/remote/directory
scp [email protected]:~/\{file1.txt,file2.txt\} /some/local/directory
scp -r [email protected]:/some/remote/directory /some/local/directory
scp -r /some/local/directory [email protected]:/some/remote/directory
By default scp uses the Triple-DES cipher to encrypt the data being sent. Using the Blowfish cipher has been shown to increase speed. This can be done by using option -c blowfish in the command line.
$ scp -c blowfish yourfile.txt [email protected]:/some/remote/directory
It is often suggested that the -C option for compression should also be used to increase speed. The effect of compression, however, will only significantly increase speed if your connection is very slow. Otherwise it may just be adding extra burden to the CPU. An example of using blowfish and compression:
$ scp -c blowfish -C yourfile.txt [email protected]:/some/remote/directory