Ubuntu上安装tftp服务

1. 安装

sudo apt install tftpd-hpa

 

2.设置工作目录

mkdir ~/tftpdroot

chmod 777 tftpdroot

 

3.修改配置文件

sudo vi /etc/default/tftpd-hpa

 

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/shine/tftpdroot" 
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s" 

4. 重启服务

sudo service tftpd-hpa restart

5. Windows中使用tftp

使用tfptd64.请从以下地址下载

http://tftpd32.jounin.net/tftpd32.html

5.客户端busybox中使用tftp

tftp [option] ... host [port]
-g  (get)
-p  (put)
-l  (local file)
-r  (remote file)
tftp -g -r test.txt 192.168.1.12
tftp -p -l test.wav 192.168.1.12

  

posted @ 2020-02-12 10:21  shinedream  阅读(609)  评论(0编辑  收藏  举报