Article Title: how to enable the TELNET service in the UbuntuLinux system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. sudo apt-get install xinetd telnetd
2. After the installation is successful, the system prompts accordingly (as if 7.10 was available, 6.10 was not seen)
Sudo vi/etc/inetd. conf and add the following line
Telnet stream tcp nowait telnetd/usr/sbin/tcpd/usr/sbin/in. telnetd
3. Add the following content to sudo vi/etc/xinetd. conf:
# Simple configuration file for xinetd
#
# Some ults, and include/etc/xinetd. d/
Ults
{
# Please note that you need a log_type line to be able to 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
4. Add the following content to sudo vi/etc/xinetd. d/telnet:
# Default: on
# Description: The telnet server serves telnet sessions; it uses \
# Unencrypted username/password pairs for authentication.
Service telnet
{
Disable = no
Flags = REUSE
Socket_type = stream
Wait = no
User = root
Server =/usr/sbin/in. telnetd
Log_on_failure + = USERID
}
5. restart the machine or restart the network service sudo/etc/init. d/xinetd restart
6. Use the TELNET client to remotely log on. ifconfig-a displays the local address.