Ubuntu 18.04: Install atftpd for TFTP server

This article will describe installing atftpd for TFTP server.

1 Install atftpd

Install atftpd package. Disable inetd and run systemd service. /srv/tftp is used for TFTP server directory.

$ sudo apt install -y atftpd
$ sudo sed -e 's/^USE_INETD=true/USE_INETD=false/g' \
       -i /etc/default/atftpd
$ sudo systemctl enable atftpd
$ sudo systemctl restart atftpd

2 GET file with atftp

Install atftp package.

$ sudo apt install -y atftp

Put file to /srv/tftp.

$ echo "hello" | sudo tee /srv/tftp/hello.txt

Get file with atftp from TFTP server.

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