Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solutions that cannot be used by telnet in linux

Shulou Source: shulou.com Published: 2022-06-03 03:34:12 09月22日 Update

Yum installation mode processing

1. Check the linux version

Cat / etc/issue

2. Check whether telnet has been installed

Rpm-qa | grep telnet

The above shows that you don't need to install it if you have already installed it. If not, move on to the next step.

3. Install telnet and telnet-server

Note: root permission is required to install

Yum install telnetyum install telnet-server

4. After installing the telnet service, the service is not enabled by default, so we need to modify the file to enable the service.

Vi / etc/xinetd.d/telnet

Change disable = yes to disable = no

: wq!

5. Xinetd service needs to be activated

Service xinetd restart

6. You need to test whether telnet is enabled successfully.

Telnet localhost

If the previous operation is all right, enter the user name and password to log in successfully.

7. When you use remote telnet on other machines, if it is not successful, then it is likely to be the problem of the firewall. Let's modify the firewall settings.

First, use netstat-tunlp to see if port 23 is blocked by the firewall

Then use iptables to modify settings

Use service iptables save to save settings

Then service iptables restart restarts the firewall.

These are the details that cannot be used by telnet under linux. Please pay attention to other related articles for more.

Tags: Firewall service fire prevention success problem check content password that is file article method time more machine permission activation version user user name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Tech Info Xiaomi Linux Huawei