I am trying to send the 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
Now with above command when I am trying to send the file but got this error:
tftp: server error: (2) Access violation
But if I create test.txt (filename that needed to send) in 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
}
Please suggest changes to make it working without creation of a file in server.