Linux Network Operations Operations of scp command

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.
This link: https://blog.csdn.net/qq_25908839/article/details/92850078

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

Guess you like

Origin blog.csdn.net/qq_25908839/article/details/92850078