SCP, secure copy, remote copy under Linux
Use the SCP command without configuring the FTP server or sharing files
Copy the files on the local host to the remote server
#scp/data/finance.data finance.order.data [email protected]:/data/
Copy the files on the remote server to the local host
#scp [Email Protected]:/data/finace.data finance.order.data/data/
However, this method must modify the SSHD service's configuration file,/etc/ssh/sshd_config
Permitrootlogin Yes, allows the root user to log in remotely and enter a password
If you need to log in with key, you must configure this option.
After modifying the Sshd_config configuration file, a restart is required, service sshd restart
Let go of the root user password login, SCP remote copy need to close the password login permissions, change back to key login, security needs
Use of SCP, remote copy copy