Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  6 of 894 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 1873
Last update: 10-17-07
Issue:
How do I turn Telnet on for a Red Hat Enterprise Linux system?
Resolution:

Red Hat recommends that you use SSH to connect to a system instead of Telnet for security purposes. Passwords are transmitted in plain text when you use Telnet. For this reason, the root user is not allowed to connect using Telnet by default.

In order to turn Telnet on make sure that you have the correct telnet-server and telnet RPMs installed:

# rpm -qa | grep telnet
telnet-server-0.17-26.EL3.2
telnet-0.17-26.EL3.2

The version numbers of the package should not matter, Red Hat Network (RHN) will always provide you with the latest version of the package for your subscribed channel.

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 up2date utility along with your RHN subscription to download and install the package(s). For example:

# up2date telnet-server telnet

On Red Hat Enterprise Linux 5, the command would be as follows:

# yum install telnet-server 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.

# 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
}

Turn the Telnet server on using the chkconfig command and then make the service available for immediate use with the service command. You will need to restart the xinetd service.

Note: It is not required that you have the specific versions mentioned in the example above in order for this to work. The versions should be specific to your release. 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
# chkconfig --list telnet
telnet          on
# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]

The chkconfig command will make the Telnet server available to start the next time the system is rebooted. You will notice that Telnet is part of the xinetd daemon. In order to make the Telnet service available immediately, use service xinetd restart to restart the xinetd daemon. You should now be able to successfully Telnet to the server:

[root@jaws root]# telnet special-ed
Trying 10.1.1.11...
Connected to special-ed.example.com (10.1.1.11).
Escape character is '^]'.
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
Kernel 2.4.21-32.ELsmp on an i686
login: jason
Password:
Last login: Sat Jul  2 14:46:57 from jaws


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   6  of  894  >>