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
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...