Steps:
- sudo apt-get install xinetd telnetd after successful installation, the system will display a corresponding prompt
- sudo vim/etc/inetd.conf and adding content: Telnet stream tcp nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd
- Enter sudo vim/etc/xinetd.conf and add content:
# Simple configuration file for< /span> xinetd# Some defaults, and include /etc/xinetd.d/ defaults {# Please note ' need a log_type line ' be able ' use log_on_success # and Log_on_failure. The default is the following: # log_type = SYSLOG daemon info instances = 60 Log_type = SYSLOG authpriv log_on_success = HOST PID Log_ On_failure = HOST cps = 25 30 } includedir /etc/xinetd.d
- sudo vim/etc/xinetd.d/telnet and add the following:
# default:on# description:the telnet Server serves Telnet sessions; it uses # unencrypted username for Authentication.service telnet { = no = reuse = stream Wait = no = root =/usr/sbin/in. telnetd + = USERID }
- Restart the machine or restart the network service sudo/etc/init.d/xinetd restart
- telnet localhost 23 test
Linux Turn on Telnet service