how to install TFTP server on CentOS 7

To install TFTP server on CentOS 7

TFTP, exapanded as Trivial File Transfer Protocol, is a basic file transfer protocol. Its a simple protocol and doesn&rsquo t have any security authentication so it is very easy to transfer small files through it. TFTP Server is multi-threaded and commonly used to upload and download executable images and backup configurations for routers and switches. In this tutorial, you will learn the method to install TFTP server on CentOS 7.

Installing TFTP

You can directly install the TFTP server on your CentOS machine by simply running the following command.


\[root@linuxhelp ~\]# yum install tftp\* Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00  
.
.
Installed:
  tftp.x86\_64 0:5.2-13.el7            tftp-server.x86\_64 0:5.2-13.el7           

Complete!

Once it is done, open the configuration file and change the option for disable from yes to no.


\[root@linuxhelp ~\]# vim /etc/xinetd.d/tftp

save and exit the file after the changes are made.

TFTP server is now ready to be used. To open it, type the command as follows


\[root@linuxhelp ~\]# tftp 192.168.7.165 tftp>  ?
tftp-hpa 5.2
Commands may be abbreviated.  Commands are:

connect     connect to remote tftp
mode        set file transfer mode
put         send file
get         receive file
quit        exit tftp
.
.
rexmt       set per-packet transmission timeout
timeout     set total retransmission timeout
?           print help information
help        print help information

Tag : CentOS TFTP
FAQ
Q
What is the configuration file of the TFTP?
A
This is the configuration file
Edit /etc/default/tftpd-hpa, run:
# vi /etc/default/tftpd-hpa
Q
What is the difference between FTP and TFTP?
A
FTP stands for File Transfer Protocol.
FTP uses TCP to manage the file transfer and is a reliable connection oriented service

TFTP uses UDP for file transfer and is not a reliable service. Packets may be lost, but neither the sender or receiver learn about it
TFTP does not support logins and is therefore a security risk (this is why most devices configure for a TFTP server internally. Devices that can have a TFTP
Q
Whether FTP is a same functionality as the Samba server?
A
No. It just an allows file transfer between network terminals in a reliable manner.
Q
Whether is is similar to ftp?
A
At somepoints it is similar but not identical.
Q
It possible to change the FTP default path into customizing path?
A
Yes, its possible to customize the default path as you want.