Settings | Sign in | Sign up

The author has 4 posts.

tftpd-hpa使用介紹

Floor 2 巨大八爪鱼 4/28/25 12:00

sudo apt-get install tftpd-hpa

sudo vim /etc/default/tftpd-hpa

sudo chown tftp:tftp /srv/tftp

sudo service tftpd-hpa restart

 

配置文件/etc/default/tftpd-hpa的內容:

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure -c"

巨大八爪鱼 4/28/25 12:01

--create和-c是一樣的。

--secure和-s是一樣的。

--listen和-l是一樣的。

巨大八爪鱼 4/28/25 13:46

上傳文件:tftp 伺服器地址 -c put 文件名

下載文件:tftp 伺服器地址 -c get 文件名

巨大八爪鱼 4/28/25 13:49
如果是busybox系統,那麼要把-c put換成-p -l,-c get要換成-g -r。

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.