DEV Community

loading...
Cover image for Setting Up OpenBSD's FTP Server

Setting Up OpenBSD's FTP Server

Heddi Nabbisen
An ICT designer/developer and a security monk with "a cool brain and a warm heart". OpenBSD/Rust etc. Interested in social issues and relationships. Founder of Scqr Inc.
・1 min read

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:

# rcctl check ftpd
ftpd(failed)
Enter fullscreen mode Exit fullscreen mode

Step 1: Enable Daemon

# rcctl enable ftpd
Enter fullscreen mode Exit fullscreen mode

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

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

Step 2: Start Daemon

# rcctl start ftpd
ftpd(ok)
Enter fullscreen mode Exit fullscreen mode

Now FTP server is running.
As long as there is no network issues, you can establish ftp connection to the server 😉
* Caution: 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.

Discussion (0)