Skip to content

Usage of TFTP server to transfer files

November 15, 2012
To Download any file from TFTP server.
use this command:
#tftp -g -r <filename> <ip-addr>
To push/upload anyfile from device to host:
use this command on device
#tftp -p -r <filename> <ip-addr>
when we get error like this on some device while pushing file to host.We need to create a file with the same name of file we want to transfer.Use touch command to create files
$cd /tftpboot
$touch a.out
$chmod 777 a.out
Now at device side transfer the file using tftp
#tftp -p -r a.out <ip-addr>

From → Uncategorized

  1. Tirumal Reddy permalink

    Remark: Download: tftp -g -r only works with tftpd server and downloads from configured source location at /etc/xinetd.d/tftp e.g server_args = -s /tftpboot

  2. Anshul permalink

    thanks much Pratik..

  3. sathi reddy permalink

    Hi to all,…

    i did like this.
    1) I have installed xined on my host machine.
    2) i have created tftp file under /etc/xinetd.d.
    3) i have set flags like this

    service tftp
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /tftpboot
    disable = yes

    and i have created /tftpboot dir.and i have created a file on this directory.

    i want to transfer a file to mini2440 .on host machine i am giving commond like this
    tftp> put 1.txt(after enteing this command)
    after one minute it is giving as “TIMED OUT”

    please give me instructons How to solve this problem

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: