In Ubuntu, scp is used to copy files in batches without entering the password scp. scp is a secure remote file copy command based on ssh logon in linux. Copy the local file to the remote command scplocalfileusername @ remote_ip: remote_folder. Create an RSA public key on the local host and copy it to your remote server. Use the command ssh-keygen
You do not need to enter a password to copy files in batches using scp in Ubuntu.
Scp is short for secure cpoy. scp is a secure remote file copy command based on ssh logon in linux.
Copy local files to a remote command
Scp localfile username @ remote_ip: remote_folder
Solution: Create an RSA public key on the local host and copy it to your remote server. Run the ssh-keygen-trsa command and press enter to the end.
In this case, a public key is generated and stored in ~ /. Ssh/id_rsa.pub, as shown in
To be operable, modify the permissions in the ssh directory, chomd-R 775 ~ /. Ssh
Copy the public key to the remote host (name the public key of the remote server anthorized_keys ):
Scp/home/YOU_PERSONAL_NAME/. ssh/id_rsa.pub username @ host:/home/YOU_SERVER_USERNAME/. ssh/authorized_keys
Some items are replaced with your own. OK
Http://www.linuxidc.com/Linux/2014-09/107127.htm of cp/scp command + scp command in Linux
CentOS cannot use the scp command to solve the http://www.linuxidc.com/Linux/2014-09/106569.htm
Scp copy file http://www.linuxidc.com/Linux/2014-04/99979.htm between two Linux Hosts
Squeeze scp transmission speed http://www.linuxidc.com/Linux/2014-01/95498.htm
Http://www.linuxidc.com/Linux/2014-01/95497.htm for accelerating scp transmission speed
Shell realize scp batch issue file http://www.linuxidc.com/Linux/2013-11/92783.htm
Ten SCP transfer command example http://www.linuxidc.com/Linux/2014-12/110846.htm
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-12/111078.htm