I'm new to Linux and while checking sshd_config file, I added user1 under AllowUsers and now I'm not able to login to my remote server even with root (through public key in authorized_keys).
Only thing I can do is login to this remote machine through ssh from another machine as user1 (as I have copied this user1 public key to authorized_keys), but user1 doesn't have permission to edit the sshd_config file.
By the way, I even don't have direct root access with a password,so sudo won't work. Only root access was through my key copied in authorized_keys file, but when I try to login as root or any other user, it refuses my key.
Is there a way to remove that AllowUsers from sshd_config file?