putty连接centos慢

用的vmware下的centos minimal镜像,开发时,用putty连接很慢,一分多钟,

解决方案:

禁用GSSAPI认证有两个方式:客户端和服务端
直接配置你ssh客户端的文件/etc/ssh/ssh_config来达到永久解决这个问题:
客户端禁用GSSAPIAuthentication
vi /etc/ssh/ssh_config
修改为GSSAPIAuthentication no
 
服务端禁用GSSAPIAuthentication
vi /etc/ssh/sshd_config
修改为GSSAPIAuthentication no
修改为UseDNS no
 
最后重启SSH服务:service sshd restart

猜你喜欢

转载自blog.csdn.net/bodybo/article/details/129332296