hi.. i am getting permissions denied on ssh for the root.. password auth and permit rootlogin is enabled.. has anyone else ran into this issue ... thnaks
ssh permission denied
-
doubleclick -
April 14, 2026 at 9:56 AM -
Thread is Resolved
-
-
Do you have another config file in /etc/ssh/ssh_conf.d ?
Somthing like 50-cloud-init.conf or else.
It overwrites the config in sshd_config
-
Did you add root to the list of AllowUsers?
P.S.: I would not recommend root-login via ssh at all. It is preferred to login as non-privileged user and then using sudo to elevate privileges.
-
Did you add root to the list of AllowUsers?
P.S.: I would not recommend root-login via ssh at all. It is preferred to login as non-privileged user and then using sudo to elevate privileges.
i just did in sshd_config and restart ssh.service but still same problem
-
Do you have another config file in /etc/ssh/ssh_conf.d ?
Somthing like 50-cloud-init.conf or else.
It overwrites the config in sshd_config
good catch.. there is no such file overrriding anything .. What else could be the problem? I never faced this before with other vps providers
-
Another problem might be that your client is using a public key for authentication not suitable for this server.
You can avoid this by ssh root@yourserver -o PubkeyAuthentication=no