OpenSUSE Leap 15: Install atftp for TFTP server

This article will describe installing atftp for TFTP server.

1 Install atftp

Install atftp package. /srv/tftpboot is used for TFTP server directory.

> sudo zypper -n in atftp
> sudo systemctl enable atftpd.socket
> sudo systemctl start atftpd.socket
> sudo firewall-cmd --add-service=tftp --permanent
> sudo firewall-cmd --reload

2 GET file with atftp

Put file to /srv/tftpboot.

> echo "hello" | sudo tee /srv/tftpboot/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