You do not need to enter a password to copy files in batches using scp in Ubuntu.

Source: Internet
Author: User
Tags scp command scp command in linux
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.