This blog post will explain how to enable ssh root login on Debian 12. This blog post assumes that someone is logged in as root.
Open the sshd configuration file with a text editor such as nano.
nano /etc/ssh/sshd_config
Find the PermitRootLogin statement in the configuration file and change it to this.
PermitRootLogin yes
Restart the ssh server.
systemctl restart sshd
