Sunday, 21 September 2014

Install and configure Telnet Server in Linux

Telnet service is to provide a text-oriented communications and this service is used on internet/LAN using a virtual terminal connection. Telnet by default uses 23 port number. We will use telnet server installation and configurations on CentOS 6 / Red Hat family as this service is also applicable and works to fedora distribution environment.

IP Configuration ( My Server IP address is )

Telnet Server Configuration

Open Terminal and login as root user.

Install Telnet server using yum.

[root@amir /]# yum install telnet*

Need to configure telnet server, go to the directory /etc/xinetd.d to change configuration.

Using vim editor to edit the telnet file.
[root@amir /]# vim telnet

Change option ‘disable = yes’ to ‘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

Restart the service after change in the file and permanently save the changes by using chkconfig option.

[root@amir xinetd.d]# service xinetd restart

Stopping xinetd:              [  OK  ]
Starting xinetd:              [  OK  ]

[root@amir xinetd.d]# chkconfig xinetd on

Check out the firewall settings for further configuration. Enable the firewall settings and add telnet port 23 and Protocol is tcp.

Again restart the xinetd service after firewall settings.

[root@amir /]# service xinetd restart                                   

No comments:

Post a Comment