-
Notifications
You must be signed in to change notification settings - Fork 13
tftp
reubenajohnston edited this page Feb 13, 2020
·
4 revisions
- 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/tftpand 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