Fedora 27: Install tftp-server for TFTP server

This article will describe installing tftp-server for TFTP server.

1 Install tftp-server

Install tftp-server package. /var/lib/tftpboot is used for TFTP server directory.

$ sudo dnf install -y tftp-server
$ sudo firewall-cmd --add-service=tftp --permanent
$ sudo firewall-cmd --reload
$ sudo systemctl enable tftp
$ sudo systemctl restart tftp

2 GET file with tftp

Install tftp package.

$ sudo dnf install -y tftp

Put file to /var/lib/tftpboot.

$ echo "hello" | sudo tee /var/lib/tftpboot/hello.txt

Get file with tftp from TFTP server.

$ echo "get hello.txt" | tftp
tftp> get hello.txt
$ cat hello.txt