Chinaunix首页 | 论坛 | 博客
  • 博客访问: 328101
  • 博文数量: 104
  • 博客积分: 2815
  • 博客等级: 少校
  • 技术积分: 595
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 16:32
文章分类

全部博文(104)

文章存档

2013年(1)

2012年(2)

2011年(21)

2010年(80)

我的朋友

分类: 系统运维

2010-06-21 10:15:48

在ubuntu下ssh登陆某些服务器,会发生需要等到十来秒才提示输入密码下现象,其实这个是debian做的一个配置上的修改引起的.

ssh_config(5) 的man页上有这样的说明:

Note that the Debian openssh-client package sets several options as stan-
dard in /etc/ssh/ssh_config which are not the default in ssh(1):

o SendEnv LANG LC_*
o HashKnownHosts yes
o GSSAPIAuthentication yes

这 个问题正是最后面那项 GSSAPIAuthentication 引起的,打开这个ssh的时候可能会先去尝试其他的认证方式.很多地方都会介绍说修改 /etc/ssh/ssh_config 文件,但是其实这并不是最好的办法,因为在下次升级的时候,也许会因为配置文件被修改过,而引起不必要的麻烦.我的解决办法是修改个人用户的配置文件,如 下:

echo “GSSAPIAuthentication no” >> ~/.ssh/config
阅读(1278) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~