I am trying to send a file to TFTP server using below command:
tftp -p -l test.txt xx.xx.xx.xx
And TFTP usage is:
BusyBox v1.13.2 (2011-03-24 18:58:44 CDT) multi-call binary
Usage: tftp [OPTION]... HOST [PORT]
Transfer a file from/to tftp server
Options: -l FILE Local FILE -r FILE Remote FILE -g Get file -p Put file
When I tried to send a file with the above command, I got this error: tftp: server error: (2) Access violation....
But if I create test.txt (file name that I needed to send) in the server manually and then try to transfer to server, it uploaded successfully.
How can I send the file without manual creation?
I am using xinetd service for tftp server, and below is its config file.
/etc/xinetd.d/tftp : service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = root server = /usr/sbin/in.tftpd server_args = /tftpboot/ disable = no }