A friend approached me about what appeared initially to be a Wordpress issue on a blog hosted on a Linux box; Wordpress was not upgrading XYZ at first attempt. I tried to get some diagnostics and maybe manually update Wordpress, only to find that trying to use putty to ssh in as root@[deleted].com was rejected. I logged into an unrelated NetBSD box and tried to ssh in, and got:
haywardfamily ~ {501}: ssh root@[deleted].com
ssh_exchange_identification: Connection closed by remote host
After a couple of tries from this computer, he went over to another machine to confirm behavior and got blocked two times, then logged in successfully on the third time. Furthermore, I saw him use an sftp client to successfully connect and interact with the server.
Has the box been rooted? I'm not sure what can be done if we can't connect, but if we do succeed in getting an ssh connection as root, what can/should be done to restore regular access?
What are next diagnostic / repair steps from here?
Thanks,