Ubuntu配置FTP服务器

vsftpd -v 查看是否安装了 vsftpd,如果没有,安装它

sudo apt-get install vsftpd

编辑 /etc/vsftpd.conf 配置文件

/etc/vsftpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
listen=NO
listen_ipv6=YES
anonymous_enable=NO
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO

启动vsftpd应用新的更改

sudo systemctl start vsftpd
sudo systemctl enable vsftpd
sudo service vsftpd start

如果要用macOS访达的 ⌘K 连接服务器,需要关闭VPN。


Author

Jinyi

Posted on

2021-10-14

Updated on

2023-04-07

Licensed under