How to Set Up your Own Personal FTP Server.

aurellem

Written by:

Robert McIntyre

Recently I had to enable FTP on my site in order to collaborate with another scientist. Here's how I did it!

1 Install vsftpd with:

sudo pacman -S vsftpd

2 Create an SSL cert for vsftpd:

sudo openssl req -x509 -nodes -days 7300 -newkey rsa:2048 \
    -keyout /etc/ssl/certs/vsftpd.pem -out /etc/ssl/certs/vsftpd.pem
sudo chmod 600 /etc/ssl/certs/vsftpd.pem

3 Edit /etc/vsftpd.conf:

anonymous_enable=NO                                                                                                     
local_enable=YES                                                                                                        
write_enable=YES                                                                                                        
dirmessage_enable=YES                                                                                                   
xferlog_enable=YES                                                                                                      
connect_from_port_20=YES                                                                                                
listen=YES                                                                                                              
seccomp_sandbox=NO                                                                                                      
ssl_enable=YES                                                                                                          
force_local_logins_ssl=YES                                                                                              
ssl_tlsv1=YES                                                                                                           
ssl_sslv2=YES                                                                                                           
ssl_sslv3=YES                                                                                                           
rsa_cert_file=/etc/ssl/certs/vsftpd.pem                                                                                 
rsa_private_key_file=/etc/ssl/certs/vsftpd.pem

4 Enable vsftpd

sudo systemctl enable vsftpd.service
sudo systemctl start vsftpd

Author: Robert McIntyre

Created: 2015-05-03 Sun 17:18

Emacs 24.4.1 (Org mode 8.3beta)

Validate