多语言展示
当前在线:1825今日阅读:2今日分享:38

关闭 UseDNS加速SSH登录

通过关闭 UseDNS和GSSAPIAuthentication选项加速SSH登录
工具/原料
1

linux系统

2

root权限

方法/步骤
1

编辑配置文件 /etc/ssh/sshd_config vim /etc/ssh/sshd_config 找到 UseDNS选项,如果没有注释,将其注释 #UseDNS yes 添加 UseDNS no

2

找到 GSSAPIAuthentication选项,如果没有注释,将其注释 #GSSAPIAuthentication yes 添加 GSSAPIAuthentication no保存配置文件

3

重启 OpenSSH服务器 /etc/init.d/sshd restart

推荐信息