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?