Use telnet to manage remote Linux servers and telnetlinux servers

Source: Internet
Author: User

Use telnet to manage remote Linux servers and telnetlinux servers

SSH requires public/private key pair configuration, which is cumbersome. In order to quickly log on to a remote Linux host from any device, you can use telnet to connect to it.

Warning telnet is transmitted in plain text. If the user password is intercepted (root), it may be leaked.

  • Telnet service configuration on Windows OS

Press Win + X, select Programs and functions (you can also find them in the control panel), select "enable or disable Windows functions", and select "telnet Client ), after confirmation, the telnet client service will be enabled.

    

Press Win + R, Enter cmd, press enter, and enter telnet to the command line. The telnet text interface indicates that the client service is enabled (enter quit to exit ).

    

  • Install and enable the telnet service for Linux server

(The release version used here is openSUSE)

1 zypper install telnet-server 

(For other releases, use apt-get install or yum install)

Telnet-server and its dependency on xinetd must be enabled after installation.

1 vi /etc/xinetd.d/telnet

Open the editor, change the disable value from yes to no, and disable it.

    

Restart the xinetd service to make the modified configuration take effect immediately.

1 service xinetd restart

After it is disabled, make sure that the telnet service is automatically enabled every time the server is started.

1 chkconfig telnet on

In addition, depending on the release version, you need to confirm that the firewall has opened port 23.

If you need to directly log on to the root user through telnet (this is very dangerous), you need to perform the following configuration.

Remove the securetty configuration file (this configuration file requires that the root user can only log on to the corresponding tty. after removal, the root user can log on remotely)

1 mv /etc/securetty /etc/securetty.bak

To be safe, move the file to a backup and it is not deleted directly.

After all the preceding steps are completed, we recommend that you restart the server.

  • Test connectivity

Log on to the remote Linux server via telnet on Windows cmd (here the root user is used.

    

Log on to the terminal through the mobile phone.

    

Available.

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.