我正在尝试提供tftpd的连接(使用xinetd),并且得到了这个错误
$ sudo systemctl status xinetd
"tftpd[18566]: unknown option -?"
在从远程主机建立连接后,尝试获取文件(或任何其他操作)。我不知道可能出了什么问题,因为我根据教程设置了所有权限和所有内容
sudo apt-get install xinetd tftpd tftp
sudo mkdir -p /etc/xinetd.d/
sudo touch /etc/xinetd.d/tftp
sudo vim /etc/xinetd.d/tftp
##copy the text below
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /srv/tftp
disable = no
}
sudo mkdir /srv/tftpd
sudo cp ~/Downloads/openwrt-18.06.1-ar71xx-generic-wndr3800-squashfs-factory.img /srv/tftp
sudo chmod -R 777 /srv/tftp
sudo chown -R nobody /srv/tftp
sudo systemctl restart xinetd.service
发布于 2020-12-22 09:49:41
基本上,由于某些原因,我无法使存储库中包含的tftpd
与xinetd“混搭”。我已经找到了我的方法,尽管使用opentftpd,可以在本教程中解释一个简短的教程。Thisone运行在xinetd之外,并且可以运行https://www.youtube.com/watch?v=K5yOBr3uoGs。
wget http://downloads.sourceforge.net/proj...
tar xvf opentftpspV1.66.tar.gz
cd opentftp/
g++ opentftpd.cpp -oopentftpd -lpthread
mkdir /home/pi/files
chmod 777 /home/pi/files/
sudo bash
cp opentftpd /usr/bin/
vi /etc/opentftp.ini
## File contents ##
[LISTEN-ON]
[HOME]
/home/pi/files
[TFTP-OPTIONS]
username=pi
ThreadPoolSize=10
Read=Y
Write=Y
Overwrite=Y
##################
/usr/bin/opentftpd -i /etc/opentftp.ini
https://askubuntu.com/questions/1301955
复制相似问题