November 20, 2026

Fedora 44 -- an FTP server, and ssh too

Why? You might ask the question.

I have an ancient machine running FreeDOS and this is the only civilized way to move files to and from the machine.

su
dnf install ftp vsftpd
firewall-cmd --add-service=ftp --permanent
firewall-cmd --reload
systemctl start vsftpd.service
systemctl enable vsftpd.service
This works! And now I can use "ftp localhost" to verify that it really is running.

Passive FTP and ports

Apparently mTCP on my FreeDOS box uses some wild new scheme called "passive" ftp. The client starts on port 21 (not 20) and then has a conversation with the server about what ports to use.

First you tell vsftp to play this game by editing /etc/vsftpd/vsftpd.conf
I append these lines:

# Added by tjt 11-20-2026
pasv_enable=Yes
pasv_min_port=10090
pasv_max_port=10094
Then I restart vsftpd:
su
systemctl restart vsftpd.service

Add new rules to the firewall

su
firewall-cmd --permanent --add-port=10090-10094/tcp
firewall-cmd --reload
#firewall-cmd --list-all
I am somewhat surprised that we don't need to explicitly open up port 21 (or 20), but we clearly don't. It works.

On the DOS side

I just type:
ftp 192.168.0.5
I give my username and password. It sets binary mode by default, then:
put xyz.bin
I also want to move a directory, and happily for me, FreeDOS has a zip command:
zip -r emup.zip emup
After this I use ftp in the same way I did above to transfer this big zip file.

And while we are at it -- sshd also!

su
dnf install -y openssh-server
systemctl enable --now sshd
firewall-cmd --permanent --add-service=ssh
firewall-cmd --reload

Have any comments? Questions? Drop me a line!

Adventures in Computing / tom@mmto.org