[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh连接慢的问题?



2008/11/12 Arthur Wong <wzc0066@gmail.com>:
>
>
> 2008/11/12 LI Daobing (李道兵) <lidaobing@gmail.com>
>>
>> 2008/11/12 Arthur Wong <wzc0066@gmail.com>:
>> > Hello all :
>> >
>> > 记得以前用ubuntu6.06的时候,如果是局域网内 ssh 连接到其它机器,很快就能看到输入密码的提示信息出现;
>> > 但现在每次都要等半天(至少有 30s 吧, 当然还是局域网内),请问大家有这种问题吗?
>> > 有没有什么办法加快一点昵 ?
>> >
>>
>> 关掉SSH服务器的 Dns 试试, 在 /etc/ssh/sshd_config 中加入 UseDNS no, 参见 sshd_config(5)
>
> Thank you very much.
>
> 我已经在 /etc/ssh/sshd_config 中最后一行添加了 UseDNS no,
> 并且重启了sshd服务,但好像没什么效果,ssh本地服务器还是需要很长时间等待,请问该如何使配置生效 ?
>
这样不行就只能查 log 了,我也没有其他办法了。



-- 
Best Regards,
 LI Daobing

Reply to: