First install xinetd In Ubuntu (it is an inetd alternative): sudoapt-getinstallxinetd and then install telnetd. In Ubuntu, there is no telnetd package, which is included in inetutils-telnetd package: sudoapt-getinstallinetutils-telnetd in/etc/xinetd. d. Create a file in the directory named telnet. Content
First install xinetd In Ubuntu (it is a substitute for inetd ):
Sudo apt-get install xinetd
Install telnetd again. There is no telnetd package in Ubuntu. It is included in the inetutils-telnetd package:
Sudo apt-get install inetutils-telnetd
In the/etc/xinetd. d directory, create a file named telnet with the following content:
# Default: off
# Description: Telnet service which is the interface of remote access.
# This is the tcp version. I omited the UDP's.
Service telnet
(
Socket_type = stream
Protocol = tcp
Wait = no
User = root
Server =/usr/sbin/telnetd
Disable = no
}
Restart xinetd:
Sudo/etc/init. d/xinetd restart
Check whether the telnet service is enabled on the terminal:
Netstat-ta | grep telnet
The output may be as follows:
Tcp 0 0 *: telnet *: * LISTEN
It indicates that telnet has been started.
Now, test it locally.
Try again on the Windows platform
If you only allow access from machines in the LAN, you can add the IP address or network group of the LAN in the/etc/hosts. allow file:
#/Etc/hosts. allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access (5) and hosts_options (5 ).
#
# Example: ALL: LOCAL @ some_netgroup
# ALL: .foobar.edu Login T terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for
# Daemon name. Remember that you can only use the keyword "ALL" and IP
# Addresses (NOT host or domain names) for the portmapper, as well as
# Rpc. mountd (the NFS mount daemon). See portmap (8) and rpc. mountd (8)
# For further information.
#