Enabling SSH Root Login

As root, edit the SSH configuration on target computer:

nano /etc/ssh/sshd_config

find the line:

#PermitRootLogin prohibit-password

add this line bellow:

PermitRootLogin yes

Restart SSH:

systemctl restart ssh

Warning: Enabling SSH root login with a password makes your server highly vulnerable to brute-force attacks. It is strongly recommended to use SSH Keys instead or create a sudo user.

Tested in Debian

Leave a Comment

Tested in Debian or Pop OS