Focus on cloud service provider activities
Notes on website operation and maintenance

Resolve the ECS login SSH error "Disconnected: No supported authentication methods available"

In the operation and maintenance server, we log in to SSH and report the error "Disconnected: No supported authentication methods available". Theoretically, the default value of the parameter PasswordAuthentication in the service is yes, and the value is set to no to disable password authentication login, resulting in such failures. You need to modify the PasswordAuthentication configuration to solve this problem.

 /etc/ssh/sshd_config

Edit this file.

Set the parameter PasswordAuthentication to yes, or add # before the parameter PasswordAuthentication, press Esc to exit the editing mode, and enter: wq to save and exit. Here we can use the vi command, or download it to the local editor.

We can restart the server to take effect, or run and restart SSHD.

 systemctl restart sshd

 

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Resolve the ECS login SSH error "Disconnected: No supported authentication methods available"