应用连接:
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
ftp命令连接:
ftp 172.22.73.1
Connected to 172.22.73.1 (172.22.73.1).
421 Service not available.
解决办法:
vi /etc/hosts.allow
在最后添加
vsftpd: All:allow
tail /etc/hosts.allow
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
sshd:172.22.99.*:allow
sshd:10.*:allow
vsftpd: All:allow