This article will describe installing tftpd-hpa for TFTP server.
Table of Contents
1 Install tftpd-hpa
Install tftpd-hpa package. /srv/tftp is used for TFTP server directory.
$ sudo apt install -y tftpd-hpa $ sudo systemctl enable tftpd-hpa $ sudo systemctl restart tftpd-hpa
2 GET file with tftp
Install tftp-hpa package.
$ sudo apt install -y tftp-hpa
Put file to /srv/tftp.
$ echo "hello" | sudo tee /srv/tftp/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