|

楼主 |
发表于 2023-1-16 18:20
|
显示全部楼层
阿里云ecs搭建VSFTP由于是内网IP 还必须使用pasv模式
- chroot_local_user=YES
- #chroot_list_enable=YES
- # (default follows)
- #chroot_list_file=/etc/vsftpd/chroot_list
- #
- # You may activate the "-R" option to the builtin ls. This is disabled by
- # default to avoid remote users being able to cause excessive I/O on large
- # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
- # the presence of the "-R" option, so there is a strong case for enabling it.
- #ls_recurse_enable=YES
- #
- # When "listen" directive is enabled, vsftpd runs in standalone mode and
- # listens on IPv4 sockets. This directive cannot be used in conjunction
- # with the listen_ipv6 directive.
- listen=YES
- #
- # This directive enables listening on IPv6 sockets. By default, listening
- # on the IPv6 "any" address (::) will accept connections from both IPv6
- # and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
- # sockets. If you want that (perhaps because you want to listen on specific
- # addresses) then you must run two copies of vsftpd with two configuration
- # files.
- # Make sure, that one of the listen options is commented !!
- #listen_ipv6=YES
- pam_service_name=vsftpd
- userlist_enable=YES
- #tcp_wrappers=YES
- allow_writeable_chroot=YES
- #pasv_enable=YES
- #pasv_addr_resolve=YES
- pasv_address=116.62.0.0 #这里填IP 不需要双引号
- pasv_min_port=10050
- pasv_max_port=10060 #防火墙要放行21 20 和这个端口范围
复制代码
刚刚搭建的时候用户直接用useradd添加就行 不知道为什么 按照一楼的教程添加一个不能登录的用户 始终提示密码不对
|
|