Monday, March 30, 2015

RHEL6/7 - Configure telnet server

RHEL6 - Configure telnet server

telnet is managed by xinetd service on Redhat. To enable telnet server install the package the

# yum search telnet
# yum install telnet-server
# service xinetd status/restart

restart of xinetd does not work telnet. You have to edit the file /etc/xinet.d/telnet and go to 'service telnet' section and set diabled = yes to no.
Once you changed it, restart the inetd service

# service xinetd restart

# chkconfig telnet on && chkconfig xinetd on

If you are using iptable/firewall, add the line below

# vi /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW --dport 23 -j ACCEPT
# service iptables restart


or RHEL7
# systemctl start telnet.socket
# systemctl enable telnet.socket

Firewall entry for RHEL 7

# firewall-cmd --permanent --add-port=23/tcp
# firewall-cmd --reload


Now, to go the client server and try to login to the server.


Note: You should use ssh but there time comes, you have to enable telnet services which is not secure.

No comments:

Post a Comment