ubuntu 配置使用root用户ssh登录并配置ssh连接加速

1. 编写ssh服务的配置文件

sudo vim /etc/ssh/sshd_config

修改以下内容:

添加第35行内容

35 PermitRootLogin yes

将第73行内容修改如下:

73 GSSAPIAuthentication no

将第103行内容修改如下:

103 UseDNS no

2. 重启ssh服务

sudo /etc/init.d/ssh restart

3. 使用xshell或其他远程连接工具是就可以使用root用户登录了

猜你喜欢

转载自blog.csdn.net/m0_46674735/article/details/113572726