Logon Using SSH key verification

Source: Internet
Author: User
Iii. Ssh password-less (key verification) login configurationConfigure host a password-free login to host B method 1) 1. generate an SSH-keygen-t rsa key pair on host a, which is stored in. generate a key file in the SSH directory. copy the public key of host a to host B: SCP id_rsa.pub host_name: file_dir 3. add the public key of host a to the authorization list of host B. SSH/authorized_keys (manually created if no one exists): CAT id_rsa.pub> authorized_keys 4. the authorized_keys permission of the authorization list must be 600, and the CHMOD 600 authorized_keys method 2) # Go To The my home directory Cd ~ /. After executing the ssh-keygen-t rsa (four carriage returns) command, two files, id_rsa (Private Key) and id_rsa.pub (Public Key), are generated) copy the public key to the machine to be logged on without Logon: ssh-copy-ID localhost: an error is returned after the public key is added to the server.

sign_and_send_pubkey: signing failed: agent refused operation

At this time, we only need to execute


eval "$(ssh-agent -s)" ssh-add

Logon Using SSH key verification

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.