LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1563|回复: 5

lftp无法登录

[复制链接]
发表于 2007-5-14 10:44:48 | 显示全部楼层 |阅读模式
系统是debian etch
可以在终端下使用普通用户用lftp登录不上ftp地址
比如
lftp ftp3.tsinghua.edu.cn

显示如下
postgres@love:~$ lftp ftp://ftp3.tsinghua.edu.cn
lftp ftp3.tsinghua.edu.cn:~> ls
---- 正在连接到 ftp3.tsinghua.edu.cn (166.111.8.205) 端口 21
<--- 220 FTP Server of Tsinghua University Ready.
<--- `ls' at 0 [FEAT negotiation...]

等了很长时间,用ctrl+c 终止,再次登录显示
---- 正在连接到 ftp3.tsinghua.edu.cn (166.111.8.205) 端口 21
<--- 421 Too many connections (2) from this IP

我已经设定了
set ftp:passive-mode off

但仍然没有解决问题。
 楼主| 发表于 2007-5-14 21:58:41 | 显示全部楼层

顶一下

试了下ftp,使用正常的,但是却是乱码,不知道lftp是怎么回事

postgres@love:~$ ftp ftp.tsinghua.edu.cn
Connected to ftp.tsinghua.edu.cn.
220 FTP Server of Tsinghua University ready.
Name (ftp.tsinghua.edu.cn:postgres): anonymous
230-
230-           ========================================
230-                Welcome to the FTP Server of
230-                    Tsinghua University
230-
230-       ==================================================
230-    ±¾վµãÓÉÇ廪´óѧ½¨Á¢²¢ά»¤£¬ÒԷþÎñÓڽÌÓýºͿÆѧÑо¿ΪĿµأ¬
230-ÃæÏ
回复 支持 反对

使用道具 举报

发表于 2007-5-15 11:20:35 | 显示全部楼层
乱码你可以在终端下的设定字符编码栏里选gb2123 或别的看看
回复 支持 反对

使用道具 举报

发表于 2007-5-15 13:00:15 | 显示全部楼层
lftp ftp3.tsinghua.edu.cn
lftp ftp3.tsinghua.edu.cn:~> ls
drwxr-xr-x    2 ftp ftpuser        6 Aug 19  2003 CERT
drwxr-xr-x    4 ftp ftpuser       32 May 24  2004 ipv6
-rw-r--r--    1 ftp ftpuser 162544024 Oct  7  2003 ls-lR
drwxr-xr-x   15 ftp ftpuser     4096 Apr 24 08:11 mirror
-rw-r--r--    1 ftp ftpuser      109 May 31  2005 sync.list
drwxr-xr-x    4 ftp ftpuser       57 Nov 13  2006 tunet
-rw-r--r--    1 ftp ftpuser      798 May  1  2004 welcome.msg
drwxr-xr-x    3 ftp ftpuser     4096 Nov 12  2003 清华大学
drwxr-xr-x    2 ftp ftpuser     4096 Sep  2  2003 相应法规
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-15 13:26:58 | 显示全部楼层
你用的是etch吗?
我不知道为什么ftp可以登录而lftp却不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-15 18:00:28 | 显示全部楼层

但是输入密码的ftp站点却可以

比如登录我们学校的ftp

postgres@love:~$ lftp
lftp :~> open buaa
口令:
---- 正在连接到 ftp.stu.buaa.edu.cn (10.100.1.6) 端口 21  
<--- <--- <--- <--- 220-Welcome to BUAA FTP
<--- 230-使用者 download 有以下组的权限::  3000    n/' [正在发送命令...]
<--- 230 OK. 目前限制的目录是 /                                   
cd 成功, 当前目录=/
lftp download@ftp.stu.buaa.edu.cn:/> ls
cartoon/  course/  entertainment/  game/  movie/  music/  new/        old/  software/  tv/
lftp download@ftp.stu.buaa.edu.cn:/>

这是怎么回事呢?一点都没有头绪
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表