Here are some news for you:
OpenSSH server defaults to "PermitRootLogin without-password"
In an attempt to harden the default setup, the
openssh-serverconfiguration will now default to "PermitRootLogin without-password". If you rely on password authentication for the
rootuser, you may be affected by this change.
openssh-serverwill attempt to detect such cases and increase the priority of its debconf prompt.
Here is a trick:
During the installation, Debian asked you to add another user with privileges, right? In my case, I created the user "yoda".
So, what we are going to do now, is to login to the Server with this user:
ximena@xdev:~$ ssh test02.ximunix.org -l yoda -p 22
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 30 11:14:11 2015 from xdev.ipandmore.de
Now we will "su" into the root account:
yoda@test02:~$ su root
Edit the sshd_config file:
root@test02:~# vi /etc/ssh/sshd_config
And change this line:
For this line:
Now, restart ssh:
root@test02:~# /etc/init.d/ssh restart
And you are ready to go.
Please, after you login to your Server with root, change or install whatever you need, and in the end, please change the sshd_config to "PermitRootLogin no" in order to avoid any major security risks. It's never good to have "PermitRootLogin" set to "yes".
Hope it helps. :)