Sunday, September 13, 2015

ssh - How to recover from "Too many Authentication Failures for user root"



I've done several attempts to establish SSH-connecton for user root@host using putty terminal. While doing so I specified wrong credentials several times and after that I've specified them correctly, and then after the credentials were accepted the ssh session breaks with





"Server unexpectedly closed network
connection".




This error is reported by putty terminal. When trying to ssh root@localhost from the local console - it works fine. It also works fine when I ssh otheruser@host from other host. So network connectivity issues are not guilty. The only error I am thinking of is: "Too many Authentication Failures for user root" although putty reported a different error.



The question is: how to recover from this error condition and let putty login again? Restarting sshd seems to not help


Answer




Are you sure that root login to ssh is allowed?



Check sshd_config and verify that root login is permitted. sshd will need to be restarted if the setting changes.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...