uFTP - FTP Server

uftp server, open source ftp server, linux ftp server, linux ftp server for embedded, easy to configure ftp server, ftp server for initramfs

User Tools

Site Tools


ftp-server-raspberry

How to install uFTP - FTP server on a Raspberry PI

uFTP server is a Full FTP SERVER ideal for small projects and in ARM devices such as Raspberry PI, it's lightweight it's portable and straightforward to use and configure. It can be installed in any version of Raspberry PI.

In this tutorial we are going to install a full FTP server in just 2 minutes in your raspberry PI.

#Clone the repository
git clone https://github.com/kingk85/uFTP.git
# Compile uFTP server
cd uFTP
# To compile with TLS/SSL support edit the makefile and uncomment the following 2 lines
#ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED
#LIBS=-lpthread -lssl -lcrypto
#compile the software
make
#Copy the files to the linux path.
sudo cp build/uFTP /sbin/uFTP
sudo cp uftpd.cfg /etc/uftpd.cfg
# Configure the server
sudo nano /etc/uftpd.cfg
#Set permissions and root restriction of the configuration file.
sudo chown root:root /sbin/uFTP
sudo chown root:root /etc/uftpd.cfg
sudo chmod -rwx /etc/uftpd.cfg
sudo mkdir /etc/uFTP
cd /etc/uFTP
sudo openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
sudo openssl rsa -in key.pem -out newkey.pem
sudo mv newkey.pem key.pem
sudo chown root:root /etc/uFTP/key.pem
sudo chmod -rwx /etc/uFTP/key.pem

Now configure the uFTP server, check the configuration page for more details uFTP server configuration.

#Run uFTP, note: root permissions are required to execute the uFTP server.
sudo uFTP

Add uFTP to rc.local script for the automatic FTP server start at boot.

#sudo nano /etc/rc.local

#add this line before exit 0
uFTP
ftp-server-raspberry.txt · Last modified: 2024/04/18 20:54 by kingk