scp is secure copy. That is you can copy file between servers over ssh connection.
scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2
Example
scp file.extn user@remote-server-ip:/path/
For server with ssh on non default port, for eg: 3333
scp -P 3333 iberiaca_vshare.sql root@server54.hosthat.com:/root/
Speedup SCP file transfer
SCP uses encryption, and some ciphers are faster than others. You can specify a faster cipher like aes128-gcm@openssh.com:
cp -c aes128-gcm@openssh.com root@bak.serverok.in:cpmove-admin0121.tar.gz .
See rsync, Linux Commands
Leave a Reply