X
    Categories: Linux

Quick way to configure telnet service.

Configure telnet service

We know that SSH service is more secure than telnet, however sometime we need to configure telnet service on the server for connecting remotely to the server.

So let’s move on to the practical way to configure telnet service.

1.    Install the service using yum server. you need to have yum server to be configured for this command.

[root@kalwa1 ~]# yum install telnet*
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-47.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package         Arch            Version                  Repository       Size
================================================================================
Installing:
 telnet          x86_64          1:0.17-47.el6            rhel62           58 k
Transaction Summary
================================================================================
Install       1 Package(s)
Total download size: 58 k
Installed size: 109 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:telnet-0.17-47.el6.x86_64                                  1/1
Installed products updated.
Installed:
  telnet.x86_64 1:0.17-47.el6
Complete!
[root@kalwa1 ~]#

2.    Now to start the telnet service even after reboot execute one of the  below task.
a.    vi /etc/xinetd.d/telnet
make disable=no
b.    chkconfig xinetd on
3.    Restart the telnet service.

[root@kalwa1 ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
[root@kalwa1 ~]#

Now your telnet server is running.

4.    Now perform a double check use following command.

[root@kalwa1 xinetd.d]# lsof -i:23
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
xinetd  3113 root    5u  IPv6  15482      0t0  TCP *:telnet (LISTEN)
[root@kalwa1 xinetd.d]#

You can see that word Listen at the end which is important.

5.    Connect from other system or from the same server for final testing.

[root@kalwa1 xinetd.d]# telnet 192.168.216.130
Trying 192.168.216.130...
Connected to 192.168.216.130.
Escape character is '^]'.
Red Hat Enterprise Linux Server release 6.2 (Santiago)
Kernel 2.6.32-220.el6.x86_64 on an x86_64
01:11 on Sunday, 28 June 2015
login:

That’s it we have configure telnet service  successfully.

For more details follow: http://www.cyberciti.biz/faq/how-do-i-turn-on-telnet-service-on-for-a-linuxfreebsd-system/

Related Post