[root@localhost ~]# vim /etc/ssh/sshd_config
找到UseDNSguanjianci
/UseDNS
复制该行,然后进入插入模式
去掉#,并将yes修改为no
末行模式保存退出
格式如下:
#UseDNS yes
UseDNS no
重启服务
[root@localhost ~]# systemctl restart sshd
去掉远程连接时的DNS域名解析
最新推荐文章于 2023-05-12 10:22:58 发布
[root@localhost ~]# vim /etc/ssh/sshd_config
找到UseDNSguanjianci
/UseDNS
复制该行,然后进入插入模式
去掉#,并将yes修改为no
末行模式保存退出
格式如下:
#UseDNS yes
UseDNS no
重启服务
[root@localhost ~]# systemctl restart sshd