OVHcloud Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Turning off PermitRootLogin in sshd prevents any user to connect


Hello! I have a Debian bullseye virtual machine. I read in OVS manuals that allowing ssh login as root is non-secure, so I decided to turn it off in /etc/ssh/sshd_config by commenting the line PermitRootLogin yes. After that I rebooted the server and I couldn’t login with absolutely any user via ssh, not only with root. It asked for password and then always answered “Permission denied”. Why does this setting affects other users than root?