|
楼主 |
发表于 2009-3-9 18:27:59
|
显示全部楼层
发现如果内网用anonymous登陆, 则不会询问密码, 如果用外网用anonymous登陆则要密码. 如何能使外网访问也不用密码呢? 高手支几招吧.
#ftp 192.168.1.2
Connected to kelen-laptop.
220 Welcome to Kelen's FTP service.
Name (kelen-laptop:kelen): anonymous
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> exit
221 Goodbye.
#showip
59.33.63.254
#ftp 59.33.63.254
Connected to 59.33.63.254.
220 FTPU ready.
Name (59.33.63.254:kelen): anonymous
331 Password required for anonymous.
Password:
530 Login incorrect.
Login failed.
Remote system type is Ignored.
ftp> exit
221 Have a nice day!
#grep -v '^#' /etc/vsftpd.conf
listen=YES
anonymous_enable=YES
local_enable=YES
write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ftpd_banner=Welcome to Kelen.Chang's FTP service.
pam_service_name=vsftpd
no_anon_password=YES
pasv_enable=yes
anon_root=/home/ftp |
|