VPS-old - Turning off PermitRootLogin in sshd prevents any user to connect
... / Turning off PermitRootLog...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Turning off PermitRootLogin in sshd prevents any user to connect

Von
DmitryK1
Erstellungsdatum 2021-08-07 15:34:36 (edited on 2024-09-04 14:25:01) in VPS-old

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?