in Unix / Linux

HowTo configure Telnet on Linux (Redhat)

Telnet

Telnet

Re-blogged from Zahidhaseeb’s Blog:

In my environment I have used Linux Redhat 6.2

  • Install three packages telnet-server, telnet and xinetd.
  • Make sure that the xinetd service should be running.
  • Configure the file name /etc/xinetd/telnet

1.) Install three packages telnet-server, telnet and xinetd.

You need to install three services

for example # yum install telnet-server telnet
the above command will also install the xinetd service. See the following example for reference:

Dependencies Resolved

=====================================================
Package               Arch         Version                  Repository    Size
=====================================================
Installing:
telnet                i686         1:0.17-47.el6            base          56 k
telnet-server         i686         1:0.17-47.el6            base          36 k
Installing for dependencies:
xinetd                i686         2:2.3.14-33.el6          base         121 k

Transaction Summary
=====================================================
Install       3 Package(s)

Total download size: 213 k
Installed size: 409 k

2.) Make sure that the xinetd service should be running.

# service xinetd status
xinetd (pid  13561) is running…

Please also note: Make sure that your firewall also stopped or the telnet traffic is allowed

3.) Configure the file name /etc/xinetd.d/telnet

We need to change the following highlighted line from yes to 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        = yes
}

Note:

In few scenarios, telnet works over the ip, but does not resolve specific ports. In that case xinetd services needs a restart

“service xinetd restart”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Have you ever thought about including a little bit more than just your
    articles? I mean, what you say is fundamental and all. Nevertheless think of if you
    added some great graphics or video clips to give your posts more, “pop”!
    Your content is excellent but with pics and videos, this website could certainly be
    one of the most beneficial in its niche. Good blog!

  2. Hi, I do believe your blog may be having internet browser compatibility problems.

    Whenever I look at your web site in Safari,
    it looks fine however, when opening in I.E., it’s got
    some overlapping issues. I just wanted to provide you with a quick heads up!
    Apart from that, wonderful site!