Linux 解决ssh连接慢的问题
文章目录
备份文件
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
编辑文件
vi /etc/ssh/sshd_config
输入/ 查找GSSAPIAuthentication
设置如下
GSSAPIAuthentication no # 是否允许使用基于 GSSAPI 的用户认证。默认值为"no"。仅用于SSH-2
输入/ 查找UseDNS
设置如下
UseDNS no # yes 开启的作用是防止客户端欺骗
重启ssh服务
systemctl restart sshd
亲测有效
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论