Ubuntu 一些问题处理方案积累

11 Dec 2012

Case1 Ubuntu 12.04 ssh 登录慢

Ubuntu 12.04 ssh 登录很慢,半天才提示输入密码。ssh -v user@ip 跟踪了一下,发现是 GSSAPIAuthentication 认证尝试等待的时间较长。

查找系统默认情况下 ssh_config 的配置里,GSSAPIAuthentication 选项是 yes,解决方案:

Step1 更改 ssh 的配置参数:

在 /etc/ssh/ssh_config 文件中修改 GSSAPIAuthentication yes(在倒数第二行) 为 GSSAPIAuthentication no

Step2 重启 ssh 服务:

1 $ sudo /etc/init.d/ssh restart

Case2

Fork me on GitHub