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

Source: Internet
Author: User

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:

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.