Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does linux install the telnet service

Shulou Source: shulou.com Published: 2022-06-03 06:24:19 09月11日 Update

Today, the editor will bring you an article on how linux installs telnet services. The editor thinks it is very practical, so I will share it for you as a reference. Let's follow the editor and have a look.

Turn off the firewall:

Service iptabls stopchkconfig iptabls off

1. Install the telnet service

[root@rheltest1 ~] # rpm-qa | grep telnet / / check whether to install the related software package telnet-0.17-47.el6.x86_64telnet-server-0.17-47.el6.x86_64

If not installed, configure the YUM source and use the yum install telnet telnet-server command to install

2. Enable telnet service (because telnet sends messages in clear text, the security is not good, and many Linux servers do not enable telnet service by default)

Edit / etc/xinetd.d/Telnet

[root@rheltest1 ~] # vi / etc/xinetd.d/telnet// find disable = yes and change yes to no

3. Start the telnet service

[root@rheltest1 ~] # service xinetd start

[root@rheltest1 ~] # chkconfig telnet on / / start the telnet service

[root@rheltest1 ~] # chkconfig-- list telnet / / check whether the Telnet service is enabled

Telnet on

4. Modify telnet service port

# vi / etc/services

Find the following:

Telnet 23/tcp

Telnet 23/udp

Change 23 to an unused port number (such as 4444), exit vi, restart the Telnet service, and the default port number of Telnet is changed.

[root@rheltest1 ~] # netstat-an | grep 4444tcp 0 0: 4444: * LISTEN

5. Test (use the telnet command to connect the test under the windows CMD window)

C:\ Users\ Administrator > telnet 192.168.1.102 4444Red Hat Enterprise Linux Server release 6.3 (Santiago) Kernel 2.6.32-279.el6.x86_64 on an x86_64login: Wed Apr 20 10:23:14 from 192.168.1.100 [rusky@rheltest1] $

These are the specific operations of linux to install telnet services, the content is more comprehensive, and I also believe that there are quite a few tools that we may see or use in our daily work. Through this article, I hope you can gain more.

Tags: Services content slogans commands testing utility security for this reason bad security that is tools messages articles daily work plaintext more server look port Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL Linux NVidia MariaDB