Chinaunix首页 | 论坛 | 博客
  • 博客访问: 63985
  • 博文数量: 12
  • 博客积分: 1148
  • 博客等级: 军士长
  • 技术积分: 131
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-14 17:14
文章分类
文章存档

2010年(12)

分类:

2010-08-05 11:16:25

最近发现ssh连接的时候却很慢,ping的速度非常好,让人误以为是ssh连接不上。
分析结果,主要原因为:DNS的解析IP导致,可分别使用以下几种分析处理方式
1、在server上/etc/hosts文件中把你本机的ip和hostname加入 
2、在server上/etc/ssh/sshd_config文件中修改或加入UseDNS=no
3、修改server上/etc/nsswitch.conf中hosts为hosts:files
4、ssh -v host 如果看到“debug1: Unspecified GSS failure.  Minor code may provide more information”,authentication gssapi-with-mic也有可能出现问题,在server上/etc/ssh/sshd_config文件中修改GSSAPIAuthentication no。/etc/init.d/sshd restart重启sshd进程使配置生效。
阅读(2180) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~