Incorrect Password after configuring sshd.config
Posted: 2018/05/21 11:31:51
I got brutal forced access last night by 5.188.10.185(https://www.abuseipdb.com/check/5.188.10.185), luckily they did't got the password
today im thinking about updating my sshd config to make it more safe, I edited
and finally
after that, i remained the ssh session which i opened on SecureCRT, root access
I opened another session: the server refused to connect, and i thought i didn't add port 25762 to the firewall exception, i changed config back to port 22 and tried again, this time it worked and let me input the password of non-root account, which i did and did it correctly. then it said username and password authentication failed.
Root password also failed
Now I can only access root and normal user on noVNC by server provider, what should I do now?
today im thinking about updating my sshd config to make it more safe, I edited
Code: Select all
vi /etc/ssh/sshd_config
Port 25762
PermitRootLogin nope
AllowUsers CollyZ
PermitEmptyPasswords no
UsePAM no
X11Forwarding no
UseDNS no
Protocol 2
MaxAuthTries 3
MaxSessions 2
Code: Select all
:wq!
systemctl restart sshd.service
I opened another session: the server refused to connect, and i thought i didn't add port 25762 to the firewall exception, i changed config back to port 22 and tried again, this time it worked and let me input the password of non-root account, which i did and did it correctly. then it said username and password authentication failed.
Code: Select all
PermitRootLogin yes
Now I can only access root and normal user on noVNC by server provider, what should I do now?