分类: LINUX
2007-12-29 09:52:40
How to enable Telnet on Linux (RHEL3)
Though ssh is popular and secure for remote login,
sometime telnet is also needed if you want to debug ssh on a remote machine.
Steps of enable telnet,
Edit and make sure /etc/xinetd.d/telnet looks like
below, then backup /etc/securetty and restart xinetd service. and chkconfig it
on make sure it will run when system reboot.
[root@ uftyolx01 ~]# 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
only_from = 192.168.8.0/24
socket_type = stream
wait = no
user = root
server =
/usr/sbin/in.telnetd
log_on_failure
+= USERID
disable = no
}
[root@ uftyolx01 ~]#mv /etc/securetty /etc/securetty.bak
[root@ uftyolx01 ~]#/etc/init.d/xinetd restart
[root@ uftyolx01 ~]# chkconfig --level 35 telnet on
[root@ uftyolx01 ~]# chkconfig --list telnet
telnet
on