Enable root user remote login on ubuntu system

The newly created Tencent Cloud ubuntu system server, the default login user name is ubuntu, so many users want to use the super administrator root user to operate their own servers, but the root user is forbidden to log in by default. How to enable the root user? ? The operation method is as follows:

1、 Use ubuntu user to log in to the system;

2、 Edit the /etc/ssh/sshd_config file;

sudo vim /etc/ssh/sshd_config

Find the configuration parameter: PermitRootLogin

Modify the value behind this parameter to yes;

Press "esc" :wq Enter, save and exit;

3、 Set a password for the root user;

sudo passwd root

Enter the password twice;

(After setting the password for the root user, you can already log in to the system from vnc as the root user)

4、 Restart ssh service

sudo systemctl restart ssh

Then log in remotely as root user for testing;

Recommended Posts

Enable root user remote login on ubuntu system
Obtain Root permission when remote Ubuntu system
Ubuntu ssh-keygen remote login
Note record | Ubuntu16.04 set default root user login
How to change root user password on Ubuntu
Tencent Cloud ubuntu system changed to root login
Turn on Wifi on laptop Ubuntu system
Tencent Cloud Ubuntu 18.04 open root login
Install Hadoop system environment on Ubuntu 18.04
Configure Nginx Git server on Ubuntu system
Putty remote login VMware virtual machine Linux (Ubuntu12.04)
Simple and clean install remote login for ubuntu18
[Practice] How to install python3.6 on Ubuntu system
How to enable Mysql remote access under Ubuntu 14.04
lamp on ubuntu
Ubuntu system installation
ubuntu cycle login
Modify the default root password of the Ubuntu operating system
[Sharp Tools]-Install Ubuntu 16.04 system on Microsoft Surface Pro series
How to install theano and keras on ubuntu system