How to enable root SSH login in Debian Jessie

Just after clean Debian Jessie Linux installation, you will install SSH Daemon and then you will encounter an issue when you are not able to login via SSH with root account.

$ ssh root@
root@'s password: 
Permission denied, please try again.

To enable root login with SSH, you must configure SSH daemon in /etc/ssh/sshd_config. Change the following line:

PermitRootLogin without-password

PermitRootLogin yes

After that, restart SSH:

# /etc/init.d/ssh restart

Then you will be able to login via SSH with root.

Tags: linux (en)