Install Telnet
Install Telnet
1. In order to turn Telnet on make sure that you have the correct telnet-
server and telnet RPMs installed. To verify if you have the telnet packages
installed, use the below command.
2. If you do not have the telnet-server or telnet packages installed, you can
install them with the RPMs available from your installation media or you
can use the yum utility to download and install the package(s). For
example:
Enable telnet
Once you have the packages installed, check the /etc/xinetd.d/telnet file
and ensure that disable = yes is changed to read disable = no.
# vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \\
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
# vi /etc/xinetd.conf
enabled = telnet
Note : You must be root in order to use these commands. Also, if you get
“command not found” then you may need to use the full path of the
command. For example, to find the full path of the chkconfig command,
type which chkconfig and you should get the full path: /sbin/chkconfig.
# chkconfig --list telnet
telnet off
# chkconfig telnet on
The chkconfig command will make the Telnet server available to start the
next time the system is rebooted.
2. You will notice that Telnet is part of the xinetd daemon. In order to make
the Telnet service available immediately, use service command to restart
the xinetd daemon.
Verify
# telnet 192.168.10.10
Trying 192.168.10.10...
Connected to 192.168.10.10
Escape character is '^]'.
[snip]
login: user
Password:
Last login: Sat Nov 2 14:46:57 from 172.168.21.21