No password required for batch copy files in Ubuntu under SCP

Source: Internet
Author: User
Tags file copy

write it in front.

There are times when I always have a fear of my life. For example now, always overwhelmed, always inferiority, always pessimistic.

The only thing that calms me down is the thought of a man who is always a 100,000-minute-focused quiet sitting in the third row of the 5 teaching-study class 109, drawing the manuscript of mechanical drawing, I've always been so focused, whether it's ice or snow or the heat. A person in an empty self-study classroom focus on everything I want to do well.

How did those tough people survive

Perhaps there is a time when ordinary is the only answer.

That I am always small, I insist on only one thing not to be swallowed up by fear and pressure my insistence on my focus.


This blog to me, that easy to forget the matter of me.



Body

SCP is the abbreviation for secure Cpoy, which is a secure remote file Copy command under the Linux system based on SSH login.


To copy a local file to a remote command


SCP LocalFile [Email Protected]_ip:remote_folder


To solve the idea, create a RSA public key on the local host and copy it to your remote server. Press ENTER exactly after using command Ssh-keygen-trsa





This time a public key is generated, stored in the ~/.ssh/id_rsa.pub, as shown in


In order to operate, modify the SSH directory permissions, chomd-r 775 ~/.ssh


Copy the public key to the remote host (name the common key of the server in the remote Anthorized_keys):

scp/home/you_personal_name/.ssh/id_rsa.pub [Email Protected]:/home/you_server_username/.ssh/authorized_keys

There's something to replace your own. Ok




No password required for batch copy files in Ubuntu under SCP

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.