Howto Install Telnet server on Centos or Redhat RHEL

Howto Install Telnet server on Centos or Redhat RHEL

 

1. Check if telnet server is installed on Server or not

[root@localhost ~]# telnet localhost
Trying ::1…
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
[root@localhost ~]#

2. Installing telnet-server

[root@localhost ~]# yum install telnet-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.ta139.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.ta139.com
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package telnet-server.x86_64 1:0.17-47.el6_3.1 will be installed
–> Finished Dependency ResolutionDependencies Resolved=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
telnet-server x86_64 1:0.17-47.el6_3.1 updates 37 kTransaction Summary
=================================================================================================
Install 1 Package(s)Total download size: 37 k
Installed size: 54 k
Is this ok [y/N]: y
Downloading Packages:
telnet-server-0.17-47.el6_3.1.x86_64.rpm | 37 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:telnet-server-0.17-47.el6_3.1.x86_64 1/1
Verifying : 1:telnet-server-0.17-47.el6_3.1.x86_64 1/1Installed:
telnet-server.x86_64 1:0.17-47.el6_3.1

Complete!
[root@localhost ~]#

3. Configure telnet server configuration

[root@localhost xinetd.d]# cat /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
}
[root@localhost xinetd.d]#

4. Restart xinetd service

[root@localhost xinetd.d]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

5.  Check telnet server

[root@localhost xinetd.d]# telnet localhost
Trying ::1…
Connected to localhost.
Escape character is ‘^]’.
CentOS release 6.3 (Final)
Kernel 2.6.32-279.el6.x86_64 on an x86_64
login:

That’s all. Thanks for using IThelpblog.com.

 

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>