不涉及
缺省情况下由于安全性的问题,linux后台默认关闭telnet服务,部分用户自行开启,开启后因为存在安全漏洞问题需要关闭。
因为缺省是没有开启,所以开启telnet服务需要安装对应的 telnet包,所以关闭时先关服务在卸载安装包。
一、关闭telnet服务
(1)关闭telnet服务(有两种方式)
a)vi /etc/xinetd.d/telnet,将disable=no改成disable=yes;
b)chkconfig telnet off;如果需要设置telnet服务不为开机自启动,使用命令chkconfig -del telnet或者chkconfig --del telnet
(2)使用命令service xinetd restart或者/etc/init.d/xinetd restart使更改生效,之后查看telnet是否关闭。
(3)删除telnet-server包,命令如下:
rpm -e telnet-server--nodeps
(4)vi /etc/services,注释23号端口。
重启telnet服务-
使用命令service xinetd restart或者/etc/init.d/xinetd restart使更改生效,之后查看telnet是否关闭。
[root@cyber ~]# service xinet restart
Redirecting to /bin/systemctl restart xinet.service
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作