Enable the Telnet service in Linux

Source: Internet
Author: User
The Linux server of the newly installed project team wants to access the Linux server through telnet in Windows, and prompts that the connection to port 23 fails, although SSH is more secure, I also use the SSH service for remote access, but I just want to install the telnet service so that other colleagues can use the telnet service to access the server. First, the telnet service is composed of xinet

The Linux server of the newly installed project team,

To use te in WindowsLnThe et Service accesses the Linux server,

Even though SSH is more secure, I also use the SSH service for remote access.TelnetTo facilitate other colleagues to use the telnet service to access the server.

The telnet service is protected by xinetd. Therefore, you must first install the xinetd service.

**************************************** **********************************

Reference a professional description:

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 client 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 that listens to a port connection, it usually means a waste of system resources. To this end, the "extended network daemon service program" xinetd (xinetd internet daemon) is introduced ).

**************************************** **********************************

1. Check whether xinetd is installed first.

Rpm-qa |GrepXinetd

If not, download the corresponding rpm package or source code package.

2. Install xinetd

Rpm-ivh xinetd-2.3.14-11.i386.rpm

After installationChkconfig-- List: the xinetd service is displayed.

3. Check whether telnet is installed.

By default, telnet-client is installed, but telnet-server is not installed. Therefore, windows cannot telnet to a Linux host.

Rpm-qa | grep telnet

The content is displayed. The client has been installed. (You cannot use rpm-qa telnet-client here. Otherwise, you will be prompted that the client has not been installed)

Rpm-qa telnet-server

No detailed software version is available and not installed. That is to say, the telnet service is not installed.

4. Install telnet-server

Rpm-ivh telnet-server-0.17-28.i386.rpm

After installation, you can see that telnet is appended to the xinetd service through chkconfig -- list.

5. Modify the telnet configuration file

Vi/etc/xinetd. d/telnet

Disable = no

6. Restart the xinetd service.

Service xinetd restart

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.