Enable Root Login via SSH
Posted by on 11 October 2018 12:12 PM
|
|
By default SSH comes configured in a way that disables root user logins. This is done as a security precaution and means that you cannot directly login as the root user over SSH. However you can usually get around the need for root ssh login by using the sudo command. In some cases though it’s just more convenient to get directly logged in as root.
Enable root login over SSH
And that’s it! With the new line added and the SSH server restarted you can now connect via the root user. In this instance you’re gonna be able to login with the root user with either the password or an ssh key. For extra security you can set the value to `without-password` instead of yes. So you would paste in the following in step 2 instead: | |
|