Linux 解决ssh链接慢的问题

备份文件

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

编辑文件

vi /etc/ssh/sshd_config

输入/ 查找GSSAPIAuthentication

图片描述

设置以下html

GSSAPIAuthentication no # 是否容许使用基于 GSSAPI 的用户认证。默认值为"no"。仅用于SSH-2

详细解释linux

输入/ 查找UseDNS

设置以下centos

UseDNS no # yes 开启的做用是防止客户端欺骗

详细解释ssh

重启ssh服务

systemctl restart sshd

亲测有效centos7

原文连接:解决ssh登陆linux速度慢的问题(以centos7为例)spa

相关文章
相关标签/搜索