Linux telnet service opening steps

  
                  

When using a Linux system, many settings are different from Windows settings. Here we mainly explain the process of opening the Linux telnet service. In Linux system, telnet is not enabled by default, so how to open it? First change the /etc/xinetd.d/telnet file, some may not have the file, such as krb5-telnet, etc., then change this file, if there is a file with telnet, there may be no installation of telent Service, you need to take the disk to install, or after installation, you can create a new file, the file content is:

1.# default: off

2.# description: The Kerberized telnet server accepts normal telnet sessions, \\

3.# but can also use Kerberos 5 authentication.

4.service telnet

5.{

6.flags = REUSE

7.socket_type = stream

8.wait = no

9.user = root

10.server = /Usr/kerberos/sbin/telnetd

11.log_on_failure += USERID

12.disable = yes

13.}

will disable= Yes's "yes" is changed to "no",

Then restart the Linux telnet service

Enter: service xinetd restart

Stopping xinetd: [ OK ]

Starting xinetd: [ OK ]

Restart is successful,

At this time, you can use the Linux telnet service to connect to the host; however, linux does not allow root user remote telnet login by default, two ways to solve this problem:

1. Log in as a non-root user and switch to the root user,

2, comment out the second line of the /etc/pam.d/login file: #auth required Pam_securetty.so; but I have not tested it here

Copyright © Windows knowledge All Rights Reserved