ubuntu configuration uses root user ssh login and configures ssh connection acceleration

1. Write the configuration file of the ssh service

sudo vim /etc/ssh/sshd_config

Modify the following:

Add line 35

35 PermitRootLogin yes

Amend the content of line 73 to read as follows:

73 GSSAPIAuthentication no

Amend the content of line 103 to read as follows:

103 UseDNS no

2. Restart the ssh service

sudo /etc/init.d/ssh restart

3. Use xshell or other remote connection tools to log in as root user

Guess you like

Origin blog.csdn.net/m0_46674735/article/details/113572726