telnet

[root@server-rhel6 ~]# rpm -q telnet-server

[root@server-rhel6 ~]# yum install telnet-server


[root@server-rhel6 ~]# vim /etc/xinetd.d/telnet 

        disable         = no
[root@server-rhel6 ~]# /etc/init.d/xinetd status
xinetd is stopped
[root@server-rhel6 ~]# /etc/init.d/xinetd start
Starting xinetd:                                           [  OK  ]
[root@server-rhel6 ~]# telnet 172.16.28.150
-bash: telnet: command not found
[root@server-rhel6 ~]# yum install telnet -y
[root@server-rhel6 ~]# telnet 172.16.28.150
Trying 172.16.28.150…
Connected to 172.16.28.150.
Escape character is ‘^]’.
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Kernel 2.6.32-573.7.1.el6.x86_64 on an x86_64
login: hulk
Password:
Last login: Wed Feb 24 00:10:40 from 172.16.28.149
[hulk@server-rhel6 ~]$
—————————–At Client Side————————————
[root@rhel6-client1 ~]# yum install telnet -y
[root@rhel6-client1 ~]# rpm -qi telnet
Name        : telnet                       Relocations: (not relocatable)
Version     : 0.17                              Vendor: Red Hat, Inc.
Release     : 48.el6                        Build Date: Monday 05 May 2014 04:24:51 AM PDT
Install Date: Wednesday 24 February 2016 01:12:31 AM PST      Build Host: x86-029.build.eng.bos.redhat.com
Group       : Applications/Internet         Source RPM: telnet-0.17-48.el6.src.rpm
Size        : 112112                           License: BSD
Signature   : RSA/8, Wednesday 09 July 2014 03:13:15 AM PDT, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla&gt;
Summary     : The client program for the Telnet remote login protocol
Description :
Telnet is a popular protocol for logging into remote systems over the
Internet. The package provides a command line Telnet client
[root@rhel6-client1 ~]# telnet 172.16.28.150
Trying 172.16.28.150…
telnet: connect to address 172.16.28.150: No route to host
[root@server-rhel6 ~]# netstat -tlpn | grep “:23”
tcp        0      0 :::23                       :::*                        LISTEN      3523/xinetd
[root@server-rhel6 ~]# iptables -I INPUT -p tcp –dport 23 -j ACCEPT
[root@server-rhel6 ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
[root@server-rhel6 ~]# service iptables reload
iptables: Trying to reload firewall rules:                 [  OK  ]
[root@server-rhel6 ~]# iptables -L | grep telnet
ACCEPT     tcp  —  anywhere             anywhere            tcp dpt:telnet
[root@rhel6-client1 ~]# telnet 172.16.28.150
Trying 172.16.28.150…
Connected to 172.16.28.150.
Escape character is ‘^]’.
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Kernel 2.6.32-573.7.1.el6.x86_64 on an x86_64
login: hulk
Password:
Last login: Wed Feb 24 01:06:25 from 172.16.28.150
[hulk@server-rhel6 ~]$
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s