Allow root SSH on Debian Jessie

Recently after installing a fresh new copy of Debian 8 (Jessie), I found that root ssh access was set to without-password by default now. What that means to you is that if you are trying to ssh to your server with your root account and password, you will receive an access denied error. In order to overcome this limitation, you will need to edit the file /etc/ssh/sshd_config to allow root password logins through ssh. As shown below, comment out #PermitRootLogin without-password and add PermitRootLogin yes.

# Authentication:
LoginGraceTime 30
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

Once the file is saved, you will need to restart the ssh daemon in order for the changes to take affect using the command below.

service ssh restart

After the ssh service is restarted, you should now be able to login through ssh using your root account and password.

Did you find this article useful? Why not share it with your friends?

5 thoughts on “Allow root SSH on Debian Jessie

  1. “For security reasons”, we should all shoot ourselves to prevent ourselves from doing harm to ourselves. 😉
    I had no line “PermitRootLogin” so I added “PermitRootLogin yes”, restarted ssh and still cannot log in.
    Any ideas?
    Thanks 🙂

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.