SSH登陆慢的问题

来源:互联网 发布:win7 64 php环境搭建 编辑:程序博客网 时间:2024/04/19 14:18

很多的Linux用户发现连接上Linux服务器在输入用户名之后还要再等一下才能输入密码,时间过长了,影响心情影响工作效率。

编辑sshd_config 这个文件:“vi /etc/ssh/sshd_config”;需要修改两个地方:

第一个地方:

[ceph@node3 ~]$ sudo grep GSSAPIAuthentication /etc/ssh/sshd_config #GSSAPIAuthentication yes GSSAPIAuthentication no [ceph@node3 ~]$


将“GSSAPIAuthentication yes”修改为“GSSAPIAuthentication no”

第二个地方:

[ceph@node3 ~]$ sudo grep GSSAPIAuthentication /etc/ssh/sshd_config#GSSAPIAuthentication yesGSSAPIAuthentication no[ceph@node3 ~]$ sudo grep UseDNS /etc/ssh/sshd_config#UseDNS yesUseDNS no[ceph@node3 ~]$

将“UseDNS yes”修改为“UseDNS no”

0 0