[root@localhost vsftpd]# more /etc/vsftpd/chroot_list |grep f1 f1 [root@localhost vsftpd]# more /etc/vsftpd/vsftpd.user_list |grep f1 f1
8、重新启动vsftp
1
[root@localhost ~]# systemctl vsftpd restart
9、测试用户能否正常登录:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[root@localhost surgeftp_2.3f2_linux64]# ./sslftp 192.168.168.120 Connected to 192.168.168.120 220 (vsFTPd 3.0.2) 234 Proceed with negotiation. starting SSL/TLS sslinit 3 Negotiated secure protocol TLSv1.2, using an AES cipher. 200 PBSZ set to 0. 200 PROT now Private. (secure) User: f1 331 Please specify the password. (secure) Password: ****** Connection problem SSLTCP:525:ssl_read tcp:-1000:SSL failure. (SSL_ERROR_SSL):error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Channel open, login Failed!
[root@localhost surgeftp_2.3f2_linux64]# ./sslftp 192.168.168.120 Connected to 192.168.168.120 220 (vsFTPd 3.0.2) 234 Proceed with negotiation. starting SSL/TLS sslinit 3 Negotiated secure protocol TLSv1.2, using an AES cipher. 200 PBSZ set to 0. 200 PROT now Private. (secure) User: f1 331 Please specify the password. (secure) Password: ****** 230 Login successful. Type in "save" to save login details to /root/.netrc sslftp> ls 226 Directory send OK. sslftp> exit 221 Goodbye. Channel Closed.
10、新增f2用户,修改vsftpd_users.conf配置文件,添加f2用户
1 2 3 4 5 6
[root@localhost ~]# vim /etc/vsftpd/vsftpd_users.conf #输入奇数行为账号,偶数行为密码 f1 123456 f2 123456
[root@localhost vsftpd]# more /etc/vsftpd/chroot_list |grep -E "f1|f2" f1 f2 [root@localhost vsftpd]# more /etc/vsftpd/vsftpd.user_list |grep -E "f1|f2" f1 f2
[root@localhost surgeftp_2.3f2_linux64]# ./sslftp 192.168.168.120 Connected to 192.168.168.120 220 (vsFTPd 3.0.2) 234 Proceed with negotiation. starting SSL/TLS sslinit 3 Negotiated secure protocol TLSv1.2, using an AES cipher. 200 PBSZ set to 0. 200 PROT now Private. (secure) User: f2 331 Please specify the password. (secure) Password: ****** 230 Login successful. Type in "save" to save login details to /root/.netrc sslftp>