当前位置:   article > 正文

linux centos7部署telnet_centos7安装telnet客户端

centos7安装telnet客户端

一、xinetd安装

telnet服务依赖于xinetd服务,所以需要首先安装xinetd服务

查看服务器是否安装有xinetd,如果已安装则进行下一步,没有则先安装xinetd服务

[root@localhost ~]# rpm -qa|grep xinetd
  • 1

1、下载上传xinetd安装包

[root@localhost ~]# xinetd-2.3.15-14.el7.x86_64.rpm
  • 1

2、安装xinetd服务

[root@localhost ~]# rpm -ivh xinetd-2.3.15-14.el7.x86_64.rpm
  • 1

3、启动xinetd服务

[root@localhost ~]# systemctl start xinetd.service
[root@localhost ~]# systemctl stauts xinetd.service
● xinetd.service - Xinetd A Powerful Replacement For Inetd
   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2022-12-29 10:32:23 CST; 2 months 14 days ago
 Main PID: 28743 (xinetd)
    Tasks: 1
   CGroup: /system.slice/xinetd.service
           └─28743 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

二、telnet安装

1、下载上传telnet安装包

[root@localhost ~]# telnet-0.17-65.el7_8.x86_64.rpm
[root@localhost ~]# telnet-server-0.17-65.el7_8.x86_64.rpm
  • 1
  • 2

第一个为telnet客户端安装包,第二个为真正的telnet服务安装包

2、安装telnet服务

[root@localhost ~]# rpm -ivh telnet-0.17-65.el7_8.x86_64.rpm
[root@localhost ~]# rpm -ivh telnet-server-0.17-65.el7_8.x86_64.rpm
  • 1
  • 2

3、启动telnet服务

[root@localhost ~]# systemctl start telnet.socket
[root@localhost ~]# systemctl enables telnet.socket  \\设置自启动
[root@localhost ~]# systemctl status telnet.socket
● telnet.socket - Telnet Server Activation Socket
   Loaded: loaded (/usr/lib/systemd/system/telnet.socket; enabled; vendor preset: disabled)
   Active: active (listening) since Tue 2023-03-14 16:39:56 CST; 23s ago
     Docs: man:telnetd(8)
   Listen: [::]:23 (Stream)
 Accepted: 4; Connected: 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

三、检查防火墙

1、检查系统默认防火墙,如果未关闭系统防火墙,需关闭

[root@itkcpt ~]# systemctl status firewalld
● firewalld.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)
  • 1
  • 2
  • 3
  • 4

2、配置iptables,放通telnet需要的23端口

至此部署完成

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/173728
推荐阅读
相关标签
  

闽ICP备14008679号