安装在虚拟机的Debian6里,地址192.168.1.183
1.win下命令行ftp客户端
可用的命令
- ftp> ?
- Commands may be abbreviated. Commands are:
- ! delete literal prompt send
- ? debug ls put status
- append dir mdelete pwd trace
- ascii disconnect mdir quit type
- bell get mget quote user
- binary glob mkdir recv verbose
- bye hash mls remotehelp
- cd help mput rename
- close lcd open rmdir
- ftp> !
测试:
- C:\Documents and Settings\Administrator>ftp 192.168.1.183
- Connected to 192.168.1.183.
- 220 (vsFTPd 2.3.2)
- User (192.168.1.183:(none)):
- 530 This FTP server is anonymous only. Login failed.
- ftp> user
- Username anonymous
- 331 Please specify the password.
- Password:
- 230 Login successful.
- ftp>
可以匿名登录。
- ftp> dir
- 200 PORT command successful. Consider using PASV.
- 150 Here comes the directory listing.
- 226 Directory send OK.
- ftp> ls
- 200 PORT command successful. Consider using PASV.
- 150 Here comes the directory listing.
- 226 Directory send OK.
列目录。
- ftp> !
- Microsoft Windows [版本 5.2.3790]
- (C) 版权所有 1985-2003 Microsoft Corp.
- C:\Documents and Settings\Administrator>exit
临时切换到shell,exit退回到ftp模式。
---------------重编辑win7----------------------------
- C:\Users\Administrator>ftp 192.168.1.183
- 连接到 192.168.1.183。
- 220 (vsFTPd 2.3.2)
- 用户(192.168.1.183:(none)): deb6
- 331 Please specify the password.
- 密码:
- 230 Login successful.
- ftp> ?
- 命令可能是缩写的。 命令为:
- ! delete literal prompt send
- ? debug ls put status
- append dir mdelete pwd trace
- ascii disconnect mdir quit type
- bell get mget quote user
- binary glob mkdir recv verbose
- bye hash mls remotehelp
- cd help mput rename
- close lcd open rmdir
- ftp> !
- Microsoft Windows [版本 6.1.7600]
- 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
- C:\Users\Administrator>cd /d d:\
- d:\>mkdir down
- d:\>dir down
- 驱动器 D 中的卷是 程序盘
- 卷的序列号是 E42A-0781
- d:\down 的目录
- 2012/06/02 12:27 <DIR> .
- 2012/06/02 12:27 <DIR> ..
- 0 个文件 0 字节
- 2 个目录 50,045,394,944 可用字节
- d:\> exit
- ftp> dir 421 Timeout. 远程主机关闭连接。(这里超时断开了,重写连接>) ftp> dir 未连接。 ftp> open 192.168.1.183 连接到 192.168.1.183。 220 (vsFTPd 2.3.2) 用户(192.168.1.183:(none)): deb6 331 Please specify the password. 密码: 230 Login successful. ftp> dir (乱码了:-<) 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. drwxr-xr-x 2 1000 1000 4096 Jun 01 13:09 涓嬭浇 drwxr-xr-x 2 1000 1000 4096 May 30 09:10 鍏叡鐨? drwxr-xr-x 2 1000 1000 4096 May 30 09:10 鍥剧墖 drwxr-xr-x 2 1000 1000 4096 Jun 01 09:12 鏂囨。 drwxr-xr-x 2 1000 1000 4096 May 30 09:10 妗岄潰 drwxr-xr-x 2 1000 1000 4096 May 30 09:10 妯℃澘 drwxr-xr-x 2 1000 1000 4096 May 30 09:10 瑙嗛 drwxr-xr-x 2 1000 1000 4096 May 30 09:10 闊充箰 226 Directory send OK. ftp: 收到 515 字节,用时 0.04秒 14.31千字节/秒。 ftp>
ftp关了匿名访问,这里加了个帐号deb6,现在用他连进去。
用我的电脑地址栏,输入
ftp://deb6:密码@192.168.1.183:21/
也可以,21端口可以省略,另外用户密码这样容易偷窥,可以ftp://192.168.1.183/然后在弹出框里输入相对好些。
如果有条件还是用FillZilla,FlashFXP之类的吧。
而且可以设置编码:
本文转自 xcf007 51CTO博客,原文链接:http://blog.51cto.com/xcf007/884448,如需转载请自行联系原作者