You do not need to enter a password to copy files in batches using scp in Ubuntu.
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
Cp/scp command + scp command in Linux
CentOS cannot use scp command Solution
Copy files between two Linux Hosts using scp
Press scp transmission speed
Accelerate scp Transmission
Shell implements scp for batch file delivery
Ten SCP transmission command examples
This article permanently updates the link address: