您的位置:首页 > 运维架构 > Linux

Linux下ssh远程连接慢解决

2016-03-30 17:43 537 查看
系统Centos7.2

解决方法:
1.编辑“/etc/ssh/sshd_config”文件,将DNS解析、GSSAPIAuthentication注释

[root@compute ~]# vim /etc/ssh/sshd_config
UseDNS 禁用DNS解析
GSSAPIAuthentication 采用Kerberos验证

UseDNS no
GSSAPIAuthentication no


[root@compute ~]# service sshd restart

2.添加主机信息
[root@compute ~]# vim /etc/hosts
10.0.0.21       compute


3.采用"ssh -v ip地址"调试
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux ssh 连接慢