码迷,mamicode.com
首页 > Web开发 > 详细

centos安装telnet

时间:2018-03-28 16:50:05      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:rpm   root权限   sbin   ini   bsp   ble   logs   端口   使用   

1、检查是否已经安装telnet

rpm -qa | grep telnet

 

2、安装telnet及telnet-server,注意,需要root权限来安装。

yum install telnet

yum install telnet-server

 

3、装好telnet服务之后,默认是不开启服务的,下面我们需要修改文件来开启服务。

vi /etc/xinetd.d/telnet

修改 disable = yes 为 disable = no

 

4、重启xinetd服务

service xinetd restart

 

5、防火墙开启23端口

#/sbin/iptables -I INPUT -p tcp --dport 23 -j ACCEPT

#/etc/rc.d/init.d/iptables save

service iptables restart

 

6、本地windows开启telnet服务

7、默认root是不允许telnet直接登录服务器的,可以用其它用户登录,然后使用su命令切换到root

 

参考资料:

https://jingyan.baidu.com/article/3c48dd34709e70e10be35835.html

https://www.cnblogs.com/Jasxu/p/xushouwei_centos_telnet.html

https://www.cnblogs.com/kuyuecs/p/7772239.html

 

centos安装telnet

标签:rpm   root权限   sbin   ini   bsp   ble   logs   端口   使用   

原文地址:https://www.cnblogs.com/day959/p/8664284.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!