This is a solution for the problem where you know the root password but cannot ssh as root.
Actually, there is a parameter in the sshd configuration file that controls whether root login is allowed. On Linux, edit the configuration file /etc/ssh/sshd_config:
|
|
Change it to:
|
|
Then restart sshd, and you will be able to access as root.
|
|
There is also a parameter to disable automatic login as shown below:
|
|
You can also set individual settings for specific IP addresses:
|
|