3)设置连接服务器的最大并发连接数为100;
[iyunv@localhost vsftpd]# vi vsftpd.conf
max_clients=100
4)修改/etc/hosts.allow文件,限制IP地址为192.168.0.5的机器不能访问该ftp服务器;
[iyunv@localhost etc]# vi hosts.allow
vsftpd: 192.168.0.5:DENY
5)完成如下设置后,请分别使用windows下的IE浏览器和linux下的ftp命令行工具验证(要求1、2、4)配置的正确性,注意要熟 悉ftp命令行的常用命令:open、close、get 、put、mget、mput、!等。
[iyunv@localhost etc]# ftp
ftp> open 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 1.1.3)
Name (127.0.0.1:root): anonymous
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> mkdir ff
257 "/incoming/ff" created
ftp> ls
227 Entering Passive Mode (127,0,0,1,255,221)
150 Here comes the directory listing.
226 Transfer done (but failed to open directory).
ftp> put host.conf
local: host.conf remote: host.conf
227 Entering Passive Mode (127,0,0,1,40,24)
150 Ok to send data.
226 File receive OK.
17 bytes sent in 5.8e-05 secs (2.9e+02 Kbytes/sec)
ftp> get host.conf
local: host.conf remote: host.conf
227 Entering Passive Mode (127,0,0,1,53,128)
550 Failed to open file.
ftp> close
221 Goodbye.
ftp> open 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 1.1.3)
Name (127.0.0.1:root): soft
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> close
221 Goodbye.