1, first view Telnet running state
netstat-a | grep telnet
The output is empty, indicating that the service is not turned on 2, installation openbsd-inetd
Apt-get Install openbsd-inetd
If you have already installed, you will be prompted to do so, just follow the steps below. 3. Installation telnetd
Apt-get Install telnetd
After installation, view the contents of the/etc/inetd.conf will be one more line of Telnet stream TCP nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd
cat/etc/inetd.conf | grep telnet
Output: Telnet stream tcp nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd 4, reboot openbsd-inetd
/etc/init.d/openbsd-inetd restart
Output: * Restarting Internet superserver inetd 5, view telnet run status
netstat-a | grep telnet
Output: TCP 0 0:telnet:* LISTEN
This indicates that the Telnet service has been turned on. 6, Telnet landing test
Telnet 127.0.0.1
Output:
Trying 127.0.0.1 ...
Connected to 127.0.0.1.
Escape character is ' ^] '. (Press CTRL + when you stop here) and enter.
Telnet> (indicates successful landing)