How to enable root login in Debian and Ubutnu VPS

To enable SSH login for a root user on Debian Linux system you need to first configure SSH server.

 and change the following line:

PermitRootLogin without-password
PermitRootLogin yes

Once you made the above change restart your SSH server:
# /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
From now on you will be able to ssh login as a root.
  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?