请问命令行下如何登录ftp?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
comfanter
帖子: 190
注册时间: 2009-05-02 14:51

请问命令行下如何登录ftp?

#1

帖子 comfanter » 2009-09-13 11:49

代码: 全选

comfanter@kubuntu:~$ ftp ftp.ubuntu.org.cn
Connected to ftp.ubuntu.org.cn.
220 Welcome to blah FTP service.
Name (ftp.ubuntu.org.cn:comfanter): ubuntu
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

Re: 请问命令行下如何登录ftp?

#2

帖子 mickeywaley » 2009-09-13 12:05

ftp.ubuntu.org.cn
只能用HTTP访问。
FTP要开通账号去

演示

代码: 全选

may@may-desktop:~$ ftp aq520.com
Connected to ww.web172.zgasp.com.
220 Microsoft FTP Service
Name (aq520.com:may): waley
331 Password required for waley.
Password:
230 User waley logged in.
Remote system type is Windows_NT.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
07-25-09  03:02PM       <DIR>          beifen
04-22-09  09:13PM       <DIR>          bk
03-06-08  04:33PM       <DIR>          database
05-28-09  07:10PM       <DIR>          logfiles
09-11-09  12:50PM       <DIR>          wwwroot
226 Transfer complete.
ftp> 

头像
comfanter
帖子: 190
注册时间: 2009-05-02 14:51

Re: 请问命令行下如何登录ftp?

#3

帖子 comfanter » 2009-09-13 12:16

提供了ftp服务,为什么只能用http访问呢?

代码: 全选

comfanter@kubuntu:~$ nmap ftp.ubuntu.org.cn                           

Starting Nmap 4.76 ( http://nmap.org ) at 2009-09-13 12:15 CST
Interesting ports on 59.36.101.19:
Not shown: 982 filtered ports
PORT      STATE  SERVICE
21/tcp    open   ftp
22/tcp    open   ssh
23/tcp    open   telnet
25/tcp    open   smtp
80/tcp    open   http
110/tcp   open   pop3
113/tcp   closed auth
143/tcp   closed imap
443/tcp   closed https
873/tcp   open   rsync
993/tcp   closed imaps
995/tcp   open   pop3s
1723/tcp  open   pptp
8000/tcp  closed http-alt
8080/tcp  closed http-proxy

代码: 全选

comfanter@kubuntu:~$ ftp ftp.sjtu.edu.cn
Connected to ftp.sjtu.edu.cn.
220 ProFTPD 1.3.0 Server (Debian) [202.38.97.230]
Name (ftp.sjtu.edu.cn:comfanter):
上面这个用浏览器不用输入用户名和密码,用命令的话怎样知道它的用户名和密码,多谢指教 :em01
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

Re: 请问命令行下如何登录ftp?

#4

帖子 木泥黑 » 2009-09-15 16:27

匿名登入
用户名anonymous
头像
comfanter
帖子: 190
注册时间: 2009-05-02 14:51

Re: 请问命令行下如何登录ftp?

#5

帖子 comfanter » 2009-09-15 22:48

可还要密码啊 :em06
头像
be00
帖子: 805
注册时间: 2008-07-28 19:51
来自: 长沙
联系:

Re: 请问命令行下如何登录ftp?

#6

帖子 be00 » 2009-09-15 23:21

木泥黑 写了:匿名登入
用户名anonymous
密码是任意字符
我的乌斑兔儿:http://zhanggang.net/m/b/b1/ubuntu右键选择在新的窗体打开
右边有一只黄手 ----> 或者注册Dropbox中文版感谢我
头像
comfanter
帖子: 190
注册时间: 2009-05-02 14:51

Re: 请问命令行下如何登录ftp?

#7

帖子 comfanter » 2009-09-16 10:17

谢谢楼上各位!总算明白了 :em01

代码: 全选

comfanter@linux:~$ ftp ftp.sjtu.edu.cn       
Connected to ftp.sjtu.edu.cn.                
220 ProFTPD 1.3.0 Server (Debian) [202.38.97.230]
Name (ftp.sjtu.edu.cn:comfanter): anonymous      
331 Anonymous login ok, send your complete email address as your password.
Password:                                                                 
230 Anonymous access granted, restrictions apply.                         
Remote system type is UNIX.                                               
Using binary mode to transfer files.                                      
ftp> ls                                                                   
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-r--r--   1 ftp      ftp          4749 May  6  2008 HEADER.html
drwxrwxr-x  23 ftp      ftp          4096 Jan  3  2009 Linux-HOWTO
d---------   3 ftp      ftp            17 Dec 11  2006 backup
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

Re: 请问命令行下如何登录ftp?

#8

帖子 yaoms » 2009-09-16 10:29

命令行用 lftp 啊, 别用原始的 ftp 了。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
comfanter
帖子: 190
注册时间: 2009-05-02 14:51

Re: 请问命令行下如何登录ftp?

#9

帖子 comfanter » 2009-09-16 10:44

yaoms 写了:命令行用 lftp 啊, 别用原始的 ftp 了。
很好很强大 :em11
回复