CentOS6/CentOS7上启用Telnet服务
1、安装telnet-server在CentOS6中,telnet服务是由xinetd管理的,没有单独的服务。# yum install xinetd telnet-server
2、配置文件,启用telnet服务由于是xinetd服务管的,配置文件都在/etc/xinetd.d目录下修改/etc/xinetd.d/telnet文件,只要把其中的“disable = yes”改为“ disable = no”,就是启用telnet服务了。# cat /etc/xinetd.d/telnet
3、修改完,重启xinetd服务就可以了。# chkconfig xinted on# service xinetd restart
4、启用root用户登录默认情况下,telnet不允许root用户登陆,需要做些配置。在 /etc/衡痕贤伎securetty 文件最后,多添加一些pts终端入口,就可以以root用户登陆了。# vim /etc/securetty......pts/0pts/1pts/2pts/3pts/4pts/5pts/6pts/7pts/8pts/9
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:36
阅读量:79
阅读量:69
阅读量:57
阅读量:53