This article will describe installing tftp-server for TFTP server.
Table of Contents
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 127.0.0.1 tftp> get hello.txt tftp> $ cat hello.txt hello