Can I disable SSH root login safely?

Hello,

On my Debian/YnH server I would like to disable ssh login for root and create a new unix user just for ssh login and then su
can i do it safely ?

Thanks

Hi Bachy,

For preventing ssh root connection you can edit “/etc/ssh/sshd_config” and change “yes” to -> “no” that line:
“Permit ssh connection with root by switching: PermitRootLogin to “yes””