Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
SCP (Secure Copy Program, secure copy program)
Features: SCP is a more secure file replication technology. Files are transmitted through an encrypted SSH channel.
Use: scp command format is: $ scp SOURCE DESTINATION
(1) to transfer local files to a remote host:
$ scp filename remotehost the User @: / Home / path
(2) Copy the file to the remote host in the current directory
$ scp user @ remotehost: / home / path / filename filename
(3) specify the run port
if port 22 is not running SSH using -oPort, and use the same syntax and sftp.
From the "shell script Raiders II" Finishing