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.
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.