Re: [分享]菜鸟简单建立FTP的方法
发表于 : 2010-06-05 11:21
菜鸟 ,拜读LZ的贴~~~~~~~去 ,試~~~ 

hatoyu 写了:我用建的那个 ftp 用户 连不上
倒是用ubuntu的登录用户 和密码一下子就连上了。
zzyy 写了:按着楼主的方法,home目录下没有生成ftp文件夹,运行命令sudo useradd -m ftp,提示useradd: user 'ftp' already exists,但home目录下确实没ftp文件夹,不知道问题出那里了。帮帮忙,谢谢!
ycerror 写了:瞎折腾了一通,终于可以显示并且匿名下载了,但是还是无法上传,明天接着折腾……
额……忘记了xbcrown 写了:ycerror 写了:瞎折腾了一通,终于可以显示并且匿名下载了,但是还是无法上传,明天接着折腾……
怎么弄呢??交流下
ycerror 写了:额……忘记了xbcrown 写了:ycerror 写了:瞎折腾了一通,终于可以显示并且匿名下载了,但是还是无法上传,明天接着折腾……
怎么弄呢??交流下
就是放狗搜了一下,改了一通= =,我猜关键是那个配置文件。
贴出我的供参考。
(目前还是只能下载不能上传,不管它了)
但是在XP上却访问不了:kevin@ubuntu:~$ ftp ubuntu
Connected to ubuntu.
220 (vsFTPd 2.0.7)
Name (ubuntu:kevin): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
下面是XP的ip配置:C:\Documents and Settings\kevin.xie> ping 192.168.174.1
Pinging 192.168.174.1 with 32 bytes of data:
Reply from 192.168.174.1: bytes=32 time<1ms TTL=128
Reply from 192.168.174.1: bytes=32 time<1ms TTL=128
Reply from 192.168.174.1: bytes=32 time<1ms TTL=128
Reply from 192.168.174.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.174.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\kevin.xie>ftp 192.168.174.1
> ftp: connect :Unknown error number
ftp> by
C:\Documents and Settings\kevin.xie>ping 192.168.26.1
Pinging 192.168.26.1 with 32 bytes of data:
Reply from 192.168.26.1: bytes=32 time<1ms TTL=128
Reply from 192.168.26.1: bytes=32 time<1ms TTL=128
Reply from 192.168.26.1: bytes=32 time<1ms TTL=128
Reply from 192.168.26.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.26.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\kevin.xie>ftp 192.168.26.1
> ftp: connect :Unknown error number
ftp> by
C:\Documents and Settings\kevin.xie>
下面是ubuntu的IP配置:C:\Documents and Settings\kevin.xie>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : hz.boldtech.internal
IP Address. . . . . . . . . . . . : 192.168.8.129
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.8.1
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.174.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.26.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
C:\Documents and Settings\kevin.xie>
kevin@ubuntu:~$ more /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu
#192.168.8.254 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
kevin@ubuntu:~$
kevin@ubuntu:~$