免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3664 | 回复: 6

[FTP] 为什么登录SSH和FTP时有长时间的停顿? [复制链接]

论坛徽章:
0
发表于 2006-03-09 08:32 |显示全部楼层
我的系统是Debian 3.1,装在VMWare上面,用Host-only方式与主机连接。Open-SSH, Proftpd

现在的问题是:
1、用Putty登录时输入用户名,会有长时间的停顿,才会出现密码提示。
2、FTP在执行LS, GET, STOR这些指令的时候也是出现长时间的停顿。

请问可能是什么原因造成的?

论坛徽章:
0
发表于 2006-03-09 10:38 |显示全部楼层
什么ftp daemon?

首先检查ssh和ftpd的设置没有去做dns lookup,你的系统在虚拟机上,做dns lookup肯定很耗时

http://research.iiit.net/~smr/cg ... ing/1115217557.html

参考proftpd的FAQ里的一个问题
http://www.proftpd.org/docs/faq/linked/faq-ch4.html#AEN341

论坛徽章:
0
发表于 2006-03-09 12:39 |显示全部楼层

回复 2楼 wolfg 的帖子

谢谢,问题已经解决,的确是DNS引起的。

********

在proftpd.conf里写入
UseReverseDNS                         off
IdentLookups                    off

在sshd_config里写入
UseDNS                                no

论坛徽章:
0
发表于 2006-03-10 09:35 |显示全部楼层
感谢了,一年没上网了,上网就找到了,呵呵
对了,还有就是在BSD下,双网卡,用PUTTY登陆不了,用单网卡就行,这是什么问题呢

论坛徽章:
0
发表于 2006-03-10 09:52 |显示全部楼层
原帖由 repol 于 2006-3-10 09:35 发表
感谢了,一年没上网了,上网就找到了,呵呵
对了,还有就是在BSD下,双网卡,用PUTTY登陆不了,用单网卡就行,这是什么问题呢


ListenAddress

Another default to consider changing is the ListenAddress setting. On a machine with only one NIC, this won't matter. On machines with two or more NICs, typically routers and firewalls, the default is to listen on all network interfaces. Often on machines with more than one network card there will be good reasons for restricting ssh access to a specific card or cards. The ListenAddress can be used to restict sshd to listening only on the specified NICs. Assuming the Port has already been set, all that is needed is to place the IP address of the NIC to be allowed after the ListenAddress option. If the machine has three or more network cards, more than one ListenAddress option may be used. If a ListenAddress option is provided, any NIC that has not been specified will not accept ssh connections.

论坛徽章:
0
发表于 2006-03-11 16:32 |显示全部楼层
我一般在server上首先执行
>/etc/resolv.conf,
呵呵!

论坛徽章:
0
发表于 2006-03-21 15:37 |显示全部楼层
原帖由 jackylau 于 2006-3-11 16:32 发表
我一般在server上首先执行
>/etc/resolv.conf,
呵呵!



very cool ..good solution
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP