This article will describe installing tftp for TFTP server.
Table of Contents
1 Install tftp
Install tftp package. /srv/tftpboot is used for TFTP server directory.
$ sudo zypper -n in tftp $ sudo systemctl enable tftp.socket
Open TFTP port.
$ for t in FW_CONFIGURATIONS_EXT FW_CONFIGURATIONS_DMZ FW_CONFIGURATIONS_INT; do sudo sed -e "s/^${t}=\"\(.*\)\"/${t}=\"\1 tftp\"/g" \ -i /etc/sysconfig/SuSEfirewall2 done $ sudo systemctl restart SuSEfirewall2
Reboot for tftp.socket.
$ sudo reboot
2 GET file with tftp
Put file to /srv/tftpboot.
$ echo "hello" | sudo tee /srv/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