Allow SSH root login

Debian 10 - buster

If you want to permit someone to login directly to the root login account via ssh, you can define in the sshd config file: /etc/ssh/sshd_config

install ssh

apt-get install ssh openssh-server


edit config file

pico /etc/ssh/sshd_config

you can change the port if you want..

Port 22

change

#PermitRootLogin prohibit-password

and add

PermitRootLogin yes


then restart ssh

service ssh restart

 



Links:
OpenSSH