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

Differences

This shows you the differences between two versions of the page.


ftp-server-raspberry [2025/08/17 16:12] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +**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**.
 +
 +<code>
 +#Clone the repository
 +git clone https://github.com/kingk85/uFTP.git
 +</code>
 +
 +<code>
 +# Compile uFTP server
 +cd uFTP
 +</code>
 +
 +<code>
 +# 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
 +</code>
 +
 +<code>
 +#Copy the files to the linux path.
 +sudo cp build/uFTP /sbin/uFTP
 +sudo cp uftpd.cfg /etc/uftpd.cfg
 +</code>
 +
 +<code>
 +# Configure the server
 +sudo nano /etc/uftpd.cfg
 +</code>
 +
 +<code>
 +#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
 +</code>
 +
 +<code>
 +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
 +</code>
 +
 +Now configure the uFTP server, check the configuration page for more details [[uftp-server-configuration|uFTP server configuration]].
 +
 +<code>
 +#Run uFTP, note: root permissions are required to execute the uFTP server.
 +sudo uFTP
 +</code>
 +
 +Add uFTP to rc.local script for the automatic FTP server start at boot.
 +<code>
 +#sudo nano /etc/rc.local
 +
 +#add this line before exit 0
 +uFTP
 +</code>
 +
 +