Log root SSH on Ubuntu/ Debian

By default, the connection with the root account is not possible because it does not have a password and the SSH server is configured so as not to allow connection with the root account.

It happens that for some operation / installation the root account is required.

In this tutorial, we will have how to configure Ubuntu / Debian in order to connect with the Root account in SSH.

Set a root password

Allow SSH connection as Root

Edit the following file: / etc / ssh / sshd_config

Comment the following line:

Add below:

Restart the SSH service

You should now be able to log in as root with Putty and WinSCP.





Related Posts


Ubuntu: install a web server – NGINX / PHP / MariaDB

PrerequisiteInstallation of the various componentsInstall NginxConfigure the nginx userTest the Nginx serverInstall PHPAdd the repositoryView available PHP versionsInstall a version of PHPConfigure NG

Installing WEBMIN on Ubuntu

Presentation of WebminInstallationUtilisationVideo Presentation of Webmin WEBMIN is software that installs a web interface to administer a Linux server. Webmin allows: System administrationAdministrat