Debian implements telnet connection

Source: Internet
Author: User
Debian implements telnet connection-Linux Enterprise Application-Linux server application information. The following is a detailed description. Debian :~ # Apt-get install xinetd
Debian :~ # Apt-get install telnetd

Create a file/etc/xinetd. d/telnet with the following content and save

Debian :~ # 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
Server_args =-h
Log_on_failure + = USERID
}
Debian :~ # Apt-get install telnet

By default, root users are not allowed to log on. However, if you need or want to log on as a root user, you can change the following file.

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

Change

10 # (Replaces the 'console' setting from login. defs)
11 auth requisite pam_securetty.so

You can use the root user to log on after you comment out the 11th rows, but before that, you need to restart xinetd.

Debian :~ #/Etc/init. d/xinetd restart (or stop before start)

Done!

PS:/etc/pam. d/login is the configuration file for system login. In addition, RH configuration for telnet is much simpler than debian.

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.