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 [email protected]
[email protected]'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:

FROM:
PermitRootLogin without-password

TO:
PermitRootLogin yes

After that, restart SSH:

# /etc/init.d/ssh restart

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

linux (en)

  • Hits: 6703
Add comment

Comments  
SSH login as root
I felt I found solution of my query. However, it seem that I have to experiment to find right solution. I would request if you can clarify whether the configuration file (/etc/ssh/sshd_config) should be changed at local desktop or remote site 10.1.1.1 THANKS ANY WAY
RE: SSH login as root
Quoting S Singh:
I felt I found solution of my query. However, it seem that I have to experiment to find right solution. I would request if you can clarify whether the configuration file (/etc/ssh/sshd_config) should be changed at local desktop or remote site 10.1.1.1 THANKS ANY WAY


Hi!

On the server 10.1.1.1, of course.

Related Articles