Linuxtelnet service enabled

Source: Internet
Author: User
Article title: linuxtelnet service enabled. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Today, a company employee got a Red Hat Enterprise 5 installation. after the system was installed, it was found that telnet was not available, and ssh was acceptable. It took a long time to get it done. combined with the previous information on this aspect, refer to the following:

1. Summary linux provides services by running daemon on the background.

The daemon is used to open a port and wait for the connection to enter. In C/S mode, if the customer requests a connection, the Daemon creates a (fork) sub-process to respond to the connection, and the parent process continues to listen to requests from other services.

However, if every service provided by the system must run a daemon listening for a port connection, it usually means a waste of system resources. To this end, the "extended Network daemon" xinetd (xinetd internet daemon) is introduced ). The telnet service is also protected by xinetd.

2. Checks whether the rpm packages of telnet and telnet-server are installed.

OS: RedHat9

[Root @ localhost root] # rpm-qa telnet

Telnet-0.17-25 // telnet *. rpm is installed by default //

[Root @ localhost root] # rpm-qa telnet-server

Null

// Telnet *. rpm is not installed by default //

3. Install the telnet-server 3rd disk with the telnet-server-0.17-25.i386.rpm [root @ localhost root] # rpm-ivh telnet-server *. i386.rpm -- this package depends on the xinet package.

4. Modify the telnet service configuration file vi/etc/xinetd. d/telnet

Service telnet

{

Disable = yes

Flags = REUSE

Socket_type = stream

Wait = no

User = root

Server =/usr/sbin/in. telnetd

Log_on_failure + = USERID

}

Add "#" to the front of the disable = yes line, or change it to "disable = no ".

PS:

After telnet-server is installed, files/usr/sbin/in. telnetd are available.

5. Restart the xinetd daemon. because the telnet service is also protected by xinetd, after the telnet-server is installed, you must restart the xinetd to start the telnet service.

[Root @ localhost root] # service xinetd restart

Or

[Root @ localhost root] #/etc/init. d/xinetd restart

6. Disable the system firewall. if it cannot be modified, first modify the user Authentication method and then try (setup-> Authentication configuration). The default firewall in linux is "high"

CLI:

[Root @ localhost root] # setup

Select: "firewall configuration"

Select security level -- "no firewall"

[1] [2] Next page

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.