Big Data | (2) SSH Connection Error Reporting Permission denied

 Big Data | (3) The centos7 graphical interface cannot execute the yum command: The centos7 graphical interface cannot execute the yum command

hello! Hello, friends of CSDN!

Today, when performing Hadoop pseudo-distributed installation, I encountered a problem, and I will share it with you here.

Hope this helps someone who has the same problem! Because this problem has really bothered me for several days!

Questions are as follows:

Error in SSH password-free login Permission denied, please try again!

After trying various methods, the reason was concluded: no password or wrong password was entered.

At this point, some friends may have questions. Didn’t I configure SSH password-free login?

Why do I have to enter a password?

For this problem, here is the solution :

Step 1: Check the authorized_keys file

Go to the SSH folder:

cd ~/.ssh/

Look at the authorized_keys file and see who the last user is:

cat authorized_keys

From the content of the file, we can see that the sky user is configured in the private key file, which means that the sky user can log in without password.

Step 2: Switch to the corresponding user in the authorized_keys file to log in without password

su authorized文件中对应的Linux用户名

The sharing of this issue is over here! If there is anything you don't understand, please leave a message to discuss!

thank you all.

Guess you like

Origin blog.csdn.net/qq_62592360/article/details/129408636