Table of Contents
1 Install atftpd
Install atftpd package.
$ sudo apt install -y atftpd
atftpd uses inetd by default. /srv/tftp is TFTP server directory by default.
$ cat /etc/inetd.conftftp dgram udp wait nobody /usr/sbin/tcpd/usr/sbin/in.tftpd –tftpd-timeout 300 –retry-timeout 5 –mcast-port1758 –mcast-addr 239.239.239.0-255 –mcast-ttl 1 –maxthread 100–verbose=5 /srv/tftp
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.1tftp> get hello.txttftp>$ cat hello.txthello