Linux下ssh遠程連接慢解決


系統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地址"調試





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章