CENTOS6 turning on the Telnet service

Source: Internet
Author: User

today to do experiments to use Telnet, found with CENTOS6 can use Telnet connection Centos7, but Centos7 can not connect CENTOS6, share the solution.

the Telnet service in CENTOS6 is a non-standalone service, in CENTOS6 Some services are rarely used, turned off and unsuitable, and these services rely on the xinetd--Super daemon process.

When a service is hosted on XINETD, when someone accesses the service, XINETD wakes the service. Let the service work.

configuration files:/etc/xinetd.conf,/etc/xinetd.d/<service>

The first thing to do is to turn on the Telnet service to install two packages



Centos7 start Service systemctl start Telnet.socket 23 Port Open

When you start the service on CENTOS6, you get an error:      

[[Email protected] ~]# service telnet start

Telnet:unrecognized Service

But obviously already installed the package, and in the start of the Service or TAB command completion, can be made out of the service how can not start, because the Telnet service is not hosted by default xinetd, Telnet is not independent services, service Telnet start service does not come, XINETD cannot wake the service. Telnet cannot turn on the service

Solution 1: Edit the file/etc/xinetd.d/telnet

Change disable =yes line to disable = no

Let Telnet service be hosted on XINETD

Restart XINETD Services Service xinetd restart

Also note that firewall policy iptables-f clears all firewall policies

service iptables Stop shutting down the firewall

Connect again to succeed

Solution 2: chkconfig telnet on

When this command is executed, it will change/etc/xinetd.d/telnet to no .

of Course the corresponding command chkconfig telnet off , the following method refers to workaround 1

Note: Because the telnet command is not secure, the user name and password can be obtained directly when grasping the packet, and gradually replaced by the SS command.

This article is from the "Linux Learning log" blog, so be sure to keep this source http://guanm.blog.51cto.com/13126952/1969844

CENTOS6 turning on the Telnet service

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.