The following error occurs when Telnet is not installed in the Linux environment:
[[Email protected] ~]# Telnet 129.223.248.159 Bash:telnet:command not found ... |
The solution requires the installation of the Telnet service, which uses Yum install, and can refer to RedHat 7 using the Centos7 yum source
Yum list telnet* List installation packages Yum Install Telnet-server Installation Server Yum Install telnet.* installation client |
[[Email protected] ~]# Telnet 129.223.248.159 12000
Bash:telnet:command not found ...
[Email protected] ~]#Yum List telnet*
Loaded Plugins:fastestmirror, Product-id, Subscription-manager
Loading mirror speeds from cached hostfile
Available Packages
telnet.x86_64 1:0.17-59.EL7 Base
telnet-server.x86_64 1:0.17-59.EL7 Base
[Email protected] ~]#Yum Install Telnet-server
Loaded Plugins:fastestmirror, Product-id, Subscription-manager
Loading mirror speeds from cached hostfile
Resolving Dependencies
--Running Transaction check
---> Package telnet-server.x86_64 1:0.17-59.el7 'll be installed
--Finished Dependency Resolution
Dependencies resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
Telnet-server x86_64 1:0.17-59.el7 Base K
Transaction Summary
================================================================================
Install 1 Package
Total download size:40 k
installed size:55 K
are this OK [y/d/n]: y
Downloading packages:
telnet-server-0. 17-59.el7.x86_64.rpm | kb 00:01
Running Transaction Check
Running transaction test
Transaction test succeeded
Running transaction
installing:1:telnet-server-0.17-59.el7.x86_64 1/1
verifying : 1:telnet-server-0.17-59.el7.x86_64 1/1
Installed:
Telnet-server.x86_64 1:0.17-59.EL7
complete!
[Email protected] ~]# yum install telnet.*
Loaded Plugins:fastestmirror, Product-id, Subscription-manager
Loading mirror speeds from cached hostfile
Resolving Dependencies
--Running Transaction check
---> Package telnet.x86_64 1:0.17-59.el7 'll be installed
--Finished Dependency Resolution
Dependencies resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
Telnet x86_64 1:0.17-59.el7 base + k
Transaction Summary
================================================================================
Install 1 Package
Total download size:63 k
installed size:113 K
are this OK [y/d/n]: y
Downloading packages:
telnet-0.17-59. el7.x86_64.rpm | kb 00:01
Running Transaction Check
Running transaction test
Transaction test succeeded
Running Transaction
installing:1:telnet-0.17-59.el7.x86_64 1/1
verifying : 1:telnet-0.17-59.el7.x86_64 1/1
Installed:
Telnet.x86_64 1:0.17-59.EL7
complete!
[[Email protected] ~]# Telnet 129.223.248.159 12000
Trying 129.223.248.159 ...
Connected to 129.223.248.159.
This article is from the "Software Design and Development" blog, please be sure to keep this source http://yuanzhitang.blog.51cto.com/2769219/1846902
Install Telnet under Linux