2- How to configure telnet server for a Linux system?
Ans : TELNET (TELetype NETwork) is a network protocol used on the Internet or local area network LAN connections. Telnet server is used to login into another system. You can use the telnet command to log in remotely to another system on your network. The system can be on your local area network or available through an Internet connection. Telnet operates as if you were logging in to another system from a remote terminal. You will be asked for a login name and password. The telnetd program (telnet server) is a server which supports the DARPA telnet interactive communication protocol. Telnetd is normally invoked by the internet server inetd or xinetd for requests to connect to the telnet port as indicated by the /etc/services file. Usually telnet listen on port TCP port 23.
Telnet Server Installation ---
Debain/Ubuntu Linux user type the following command:# apt-get install telnetd
OR$ sudo apt-get install telnetd
Fedora Linux user the following command:# yum install telnet-server telnet
Red Hat enterprise Linux user type the following command:up2date telnet-server telnet
The same can be implemented graphically through the software center packages installation modes . It is however great to try installing every thing in Linux via CommandLine.
Telnet Server Configuration ---
Again each distribution has its own method to turn on or off telnet service; same applies to telnet UNIX/Linux server.
If you are using Red Hat / Fedora Linux
The configuration file for telnet is /etc/xinetd.d/telnet. To enable telnet server you need to open this file and make sure disable = no read as disable = yes.
Alternately,# chkconfig telnet on
To start telnet server type command:# /etc/init.d/xinetd restart
If you are using Debian LinuxThe configuration file for telnet is /etc/inetd.conf. By default it is enabled when you install telnet server. To start telnet server type command:# /etc/init.d/inetd restart
You should now be able to telnet to the server from Windows or Linux desktop system. Type the following command to connect to Telnet server:telnet server-ip-address
telnet 172.31.101.193
telnet 172.31.101.193