Use Telnet in Ubuntu

Source: Internet
Author: User
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.
#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.