Skip to content
reubenajohnston edited this page Feb 13, 2020 · 4 revisions

Trivial File Transfer Protocol (TFTP)

  • Server install is $ sudo apt-get install tftpd-hpa
  • Client install is $ sudo apt-get install tftp-hpa
  • Start the server using $ sudo systemctl start tftpd-hpa
  • Restart the server using $ sudo systemctl restart tftpd-hpa
  • Query the status using $ sudo systemctl status tftpd-hpa
  • Stop the server using $ sudo systemctl stop tftpd-hpa
  • Default settings are in /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
  • Test the server operations by copying a file into /srv/tftp and pulling it via a client session

$ sudo echo hello > /srv/tftp/hello
$ tftp 0.0.0.0
tftp> get hello
tftp> q
  • hello file should now exist in current directory and contain the text hello
Clone this wiki locally