How to configure the Telnet service in Debian Linux

Source: Internet
Author: User
Step: 1. debian :~ # Apt-getinstalltelnetddebian :~ # Apt-getinstalltelnetd-ssldebian :~ # Apt-getinstallxinetd (installation package xinetd ......) 2. create a file/etc/xinetd. d/telnet. the method and content are as follows, and save. debian :~

 

Steps:

1.Debian :~ # Apt-get install telnetd

   Debian :~ # Apt-get installtelnetd-ssl

   Debian :~ # Apt-get installxinetd

       (Installation package xinetd ......)

2. create a file/etc/xinetd. d/telnet. the method and content are as follows and save the file.

  Debian :~ # Nano-w/etc/xinetd. d/telnet

      GNU nano1.2.4           File:/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

       Server_args   =-H

       Log_on_failure+ = USERID

    }


3. debian :~ # Apt-get install telnet


    (Installation package telnet ......)

4. try to connect:

Debian :~ # Telnet 10.11.12.13 (local IP address)

Result:

Trying 10.11.12.13...

Connected to 10.11.12.13.

Escape character is '^]'.

Debian login: root

Loginincorrect    # Root users are not allowed to log on by default. for security reasons, refer to the telnet protocol.

 

Debian login: user # User-created

Password:

Last login: Mon Sep 27 20:51:33 2004 from localhost. localdomainon pts/3

Linux debian 2.6.8-1-686 #1 Tue Sep 14 00:22:58 EDT 2004 i686GNU/Linux

 

The programs encoded with the Debian GNU/Linux system are freesoftware;

The exact distribution terms for each program are described inthe

Individual files in/usr/share/doc/*/copyright.

 

Debian GNU/Linux comes with absolutely no warranty, to theextent

Permitted by applicable law.

User @ debian :~ $ # After successful login

 

To enable root login, follow these steps:

Debian :~ # Vim/etc/pam. d/login

Comment out the line auth requisite pam_securetty.so and complete the configuration.

Command:

Debian :~ #/Etc/init. d/xinetd (command)

Force-reload (force refresh) | reload | restart | start | stop)

Others can be viewed by themselves

 

Related Article

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.