Set SSH password-free login--still prompt to enter password

Source: Internet
Author: User

1) Generate key: Execute the following statement in the root directory (CD ~/user root):

Ssh-keygen-t Dsa-p "-F ~/.SSH/ID_DSA

The above is a two single quotation mark.

2) Append the id_dsa.pub (public key) to the authorized key:

Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

3) Copy the authentication file to the other node:

SCP ~/.ssh/authorized_keys user @ Host Name: ~/.ssh/

For example: SCP ~/.ssh/authorized_keys [email protected]:~/.ssh/to enter a password at this time

Finished configuring

Then verify the SSH ongmefex54vm12 prompt to enter the password

It could be. SSH and the file permissions within it are not sufficient

Workaround: Root User Login

    1. chmod ~/.ssh

2. chmod ~/.ssh/authorized_keys

This problem may also occur if the local login user is inconsistent with the remote login user

Workaround:

Modify the local login user's ~/.ssh/config file, if the wood has the words to build a bar, the content is as follows:
Host hostname
User username
Host hostname2
User UserName2
In this way, the local and remote login user name inconsistency can also ssh hostname login.
Call it

Set SSH password-free login--still prompt to enter 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.