Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open telnet service in linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to open the telnet service in linux, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

Methods:

1. Switch to root user

two。 If the telnet service is not installed in Linux, you need to install it first. You can activate it after installation.

3. Check whether the rpm package of telnet is installed

[root@localhost ~] # rpm-qa telnet

Telnet-0.17-48.el6.x86_64

[root@localhost ~] #

4. Install the telnet installation package:

[root@localhost] # rpm-ivh xinetd-2.3.14-34.el6.x86_64.rpm

Warning: xinetd-2.3.14-34.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

Preparing... # [100%]

Package xinetd-2:2.3.14-39.el6_4.x86_64 (which is newer than xinetd-2:2.3.14-34.el6.x86_64) is already installed

File / usr/sbin/xinetd from install of xinetd-2:2.3.14-34.el6.x86_64 conflicts with file from package xinetd-2:2.3.14-39.el6_4.x86_64

[root@localhost ~] #

5. Modify telnet service profile

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

}

Change disable=yes to disable=no

Note: the system will not have the / usr/sbin/in.telnetd file until the telnet-server service is installed

6. Restart the telnet service

[root@localhost root] # service xinetd restart

7. Test whether it is OK, if not, check that the firewall is turned off

[root@localhost ~] # telnet 127.0.0.1

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is'^]'.

CentOS release 6.4 (Final)

Kernel 2.6.32-358.el6.x86_64 on an x861464

Login:

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report