我有个问题。当我尝试使用FTP连接它给这个错误。
/etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=022
anon_upload_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
dual_log_enable=YES
chroot_local_user=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
force_dot_files=YES
ascii_upload_enable=YES
ascii_download_enable=YES
allow_writeable_chroot=YES
seccomp_sandbox=NO
pasv_enable=YES
pasv_min_port=12000
pasv_max_port=12100
max_per_ip=10
max_clients=100
use_localtime=YES
pasv_address='35.195.69.80'
FTP输出
Status: Connecting to 35.233.4.11:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,34,199,3
Response: 500 OOPS: priv_sock_get_cmd
Error: Failed to retrieve directory listing
Error: Connection closed by server
FTP连接配置领域
host => packages.pastheme.com
Username => *****
Pass => *****
我所做的是我不能处理这个问题。我重置马甲此操作后,但结果是一样了。我的操作系统Ubuntu的16.04
服务器防火墙不允许将数据发送到客户端,让它通过下面的代码进行连接:
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
检查新用户的路径在/ etc /炮弹注册。
nano /etc/shells
我很容易地添加这一行,如果没有:
/usr/sbin/nologin
毕竟重新启动相关服务,以确保:
service iptables restart
service vsftpd restart