Linux下安装telnet
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下安装telnet相关的知识,希望对你有一定的参考价值。
Linux 环境下未安装telnet,会出现以下错误:
[[email protected] ~]# telnet 129.223.248.159 bash: telnet: command not found... |
解决方案需要安装telnet服务,此处采用yum install,可以参考 RedHat 7 使用Centos7 的yum源
yum list telnet* 列出安装包 yum install telnet-server 安装server yum install telnet.* 安装客户端 |
[[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 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
telnet-server x86_64 1:0.17-59.el7 base 40 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 40 k
Installed size: 55 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-server-0.17-59.el7.x86_64.rpm | 40 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 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
telnet x86_64 1:0.17-59.el7 base 63 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 63 k
Installed size: 113 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-0.17-59.el7.x86_64.rpm | 63 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.
本文出自 “软件设计与开发” 博客,请务必保留此出处http://yuanzhitang.blog.51cto.com/2769219/1846902
以上是关于Linux下安装telnet的主要内容,如果未能解决你的问题,请参考以下文章