I´d like to enable the
ssh root access on Ubuntu 14.04. Editing the
/etc/ssh_config (PermitRootLogin yes) didn't affect anything.
Simply adding a password for root is not enough for Ubuntu 14.04 Server.
You also need to edit
/etc/ssh/sshd_config, and comment out the following line:
Just below it, add the following line:
Then restart SSH:
service ssh reload
For Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64)
PermitRootLogin without-password has been replaced by
You need to setup a password for the root account and then it will work.
Enter same password twice.
P.S. After modifying /etc/ssh/sshd_config don't forget to reload the openssh server.
sudo service ssh reload
With Ubuntu 14.04 Server.
Set the password
Changes in /etc/ssh/sshd_config
You may also have to check value of PasswordAuthentication. If it is set to no then set to yes
Then restart SSH:
service ssh restart
For 14.04 you would have to comment below line in /etc/ssh/sshd_config
For me, none of these steps worked, I've even tried something I wouldn't ever try for something else then a toy vm:
The only thing that worked for me was disabling the PAM module for this:
This option is normally at the very end of the file. To be honest, I don't know the real drawbacks of this, but since you're not supposed to allow root login online, I guess it's okay for a private dev-vm.
Nevertheless, set a strong password, always. Nope this is not an exception. Not even only this time...
protected by Community♦ Nov 6 '14 at 14:39
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?