CentOS-Minimal版本下安装telnet服务和xinetd服务

默认在centos-Minimal版本下没有安装telnet和xinetd服务。

成都创新互联主要为客户提供服务项目涵盖了网页视觉设计、VI标志设计、成都营销网站建设、网站程序开发、HTML5响应式成都网站建设成都手机网站制作、微商城、网站托管及网页维护、WEB系统开发、域名注册、国内外服务器租用、视频、平面设计、SEO优化排名。设计、前端、后端三个建站步骤的完善服务体系。一人跟踪测试的建站服务标准。已经为成都发电机维修行业客户提供了网站改版服务。

1、安装telnet

[root@localhost ~]# rpm -qa | grep telnet  --检查是否安装telnet,没有文件表示未安装

[root@localhost ~]# yum -y install telnet  --安装telnet客户端,出现“Complete!”表示安装完成

[root@localhost ~]# yum -y install telnet-server  --安装telnet服务端,出现“Complete!”表示安装完成

2、安装xinetd

[root@localhost ~]# rpm -qa | grep xinetd  --检查是否安装xinetd,没有文件表示未安装

[root@localhost ~]# yum -y install xinetd  --安装xinetd,出现“Complete!”表示安装完成

3、在xinetd服务中开启telnet服务

[root@localhost ~]# vi /etc/xinetd.d/telnet  --编辑

# default: yes
# description: The telnet server servestelnet sessions
# unencrypted username/password pairs for authentication
service telnet
{
  flags = REUSE
  socket_type = stream
  wait = no
  user = root
  server =/usr/sbin/in.telnetd
  log_on_failure += USERID
  disable = no
}

4、启动xinetd服务

[root@localhost ~]# systemctl restart xinetd.service  --启动服务

[root@localhost ~]# ps -ef | grep xinetd  --查看启动

5、设置开机启动xinetd

[root@localhost ~]# chkconfig --level 35 xinetd on

Note: Forwarding request to 'systemctl enable xinetd.service'.

[root@localhost ~]# systemctl enable xinetd.service

[root@localhost ~]# chkconfig --list  --查看

6、测试telnet

[root@localhost ~]# telnet 127.0.0.1

telnet下root登录,密码正确,总提示:Login incorrect

[root@localhost ~]# vi /etc/pam.d/remote

注释/etc/pam.d/remote的第一行,即:auth required pam_securetty.so

关闭防火墙

[root@localhost ~]# systemctl status firewalld.service --再查看防火墙状
[root@localhost ~]# systemctl stop firewalld.service --关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service --永久关闭防火墙

当前标题:CentOS-Minimal版本下安装telnet服务和xinetd服务
分享URL:http://www.hantingmc.com/qtweb/news29/231779.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联