Build tftp server

Build tftp server process
sudo apt-get install tftpd-hpa tftp-hpa
tftpd-hpa: server
tftp-hpa: client
Open the file sudo vi /etc/default/tftpd-hpa
File content:
TFTP_USERNAME=”tftp”
TFTP_DIRECTORY=”/ home/hy/tftp_file”
TFTP_ADDRESS=”:69”
TFTP_OPTIONS=”–secure”
TFTP_DIRECTORY This is the root directory of tftp

Open to the limit:
sudo chmod –R 777 / home / hy / tftp_file
sudo chown –R nobody / home / hy / tftp_file

Start the tftp server
sudo service tftpd-hpa restart
to create the file 1.c

tftp 192.168.1.49
tftp> get 1.c
tftp> q

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325162178&siteId=291194637