Install Telnet server under Linux

Source: Internet
Author: User

In general, the Telnet service is not installed by default in Linux and needs to be installed manually, because Telnet is dependent on the process of the Super Daemon, and the process that relies on the super daemon is usually placed in the/etc/xinetd.d/directory, and the independent process is generally placed in/ etc/init.d/rc.d/under this directory.

Installation steps:

1. Mount Disc image

[Email protected] ~]# mount/dev/cdrom/mnt

Mount:block Device/dev/cdrom is write-protected, mounting read-only

2. Go to the server directory mounted under/MNT

[Email protected] ~]# cd/mnt/server/

3. Install the Telnet-server software package, which is a Telnet server version of the package

[Email protected] server]# RPM-IVH telnet-server-0.17-39.el5.i386.rpm

4. Configure Telnet (very simple)

[Email protected] server]# vim/etc/xinetd.d/telnet

# Default:on

# description:the Telnet Server serves Telnet sessions; It uses \

# unencrypted Username/password pairs for authentication.

Service Telnet

{

Flags = Reuse

Socket_type = Stream

wait = no

user = root

Server =/usr/sbin/in.telnetd

Log_on_failure + = USERID

Disable = yes

}

Only need to change the above Disable=yes to =no, where yes indicates that the Telnet service will not wake up, if there is another machine telnet the server will not be able to connect, instead of Wake Telnet service

5. Restart XINETD Service

[Email protected] ~]# service xinetd restart


Note: When other machines telnet to the machine, it is not possible to authenticate with the root user, it is necessary to create a regular account, log in through a regular account and then switch to the root user

6. Create a regular account and set a password

[Email protected] ~]# Useradd test

[Email protected] ~]# passwd test

After the end of the Telnet server has been configured to complete, this time need to find a customer service side to test

Test:

xshell:\> telnet 192.168.241.100

Login:test

Password:

Login Incorrect


Login:test

Password:

Last Login:thu 21:51:26 on Tty3

[[email protected] ~]$ see here that it is already telnet connected to the user who can be switched to root, using

Su-or Su-root can


Install Telnet server under Linux

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.