Solve the Problem of agent admitted failure to sign using the key with SSH

Source: Internet
Author: User

To install SSH on the local machine, you can install it through sudo apt-Get Install SSH or xide. If no configuration is made, the password of the host is required to log on to the local host or remote host. Configure password-free logon as follows:

Run the ssh-keygen-t rsa command and press Enter. two files are generated under the SSH folder, one public key and one private key file, id_rsa id_rsa.pub, and then run CP ~ /. Ssh/id_rsa.pub ~ /. Ssh/authorized_keys command. After this configuration, you can log on to the local machine without a password. To log on to the remote host, you only need to send the authorized_keys file to the remote host ~ /. Ssh/directory.

The same method is used in the current SSH mode to generate a warning message.

Agent admitted failure to sign using the key

Use the ssh-add command to add the private key (Change id_rsa according to the name of the private key)
# Ssh-add ~ /. Ssh/id_rsa

You can use the SSH host name to log on without a password.

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.