DEV Community 👩‍💻👨‍💻

Cover image for OpenBSD ftpd 6.4: FTP server
Heddi Nabbisen
Heddi Nabbisen

Posted on • Updated on • Originally published at obsd.solutions

OpenBSD ftpd 6.4: FTP server

Summary

OpenBSD has its own FTP server called ftpd.
It's sufficient to transfer files among hosts in a simple and secure way.

How To Use

ftpd is installed as a daemon in OpenBSD as the OS is installed.
In order to use it, run rcctl enable and rcctl start, and it's almost done.

Step 0: Before Configuration

The daemon is disabled by default:

$ doas rcctl check ftpd
ftpd(failed)
Enter fullscreen mode Exit fullscreen mode

Step 1: Enable Daemon

$ doas rcctl enable ftpd
Enter fullscreen mode Exit fullscreen mode

* Note: Here, /etc/rc.conf.local is updated:

$ cat /etc/rc.conf.local
ftpd_flags=
Enter fullscreen mode Exit fullscreen mode

Step 2: Start Daemon

$ doas rcctl start ftpd
ftpd(ok)
Enter fullscreen mode Exit fullscreen mode

FTP server is now running.
As long as there is no network issues, you can establish ftp connection to the server 😉
* Note: Accessing as root is forbidden.

Reference: Additional Configuration

OpenBSD provides us several files, that is several ways, to add more configuration about such as chroot and authentication.

Top comments (0)

Hacktoberfest is happening now!



It is a month-long celebration of open source. For a lot of devs, its their introduction to open source.


Check out the Hacktoberfest tag on DEV to keep up with the latest!