如何使用telnet连接linux主机
作者:马鹏
归档:学习笔记
2017/8/1
telnet连接linux服务器
1.1 检查系统是否安装telnet服务
[root@localhost etc]# rpm -qa |grep telnet rpm –qa查看软件是否安装
telnet-server-0.17-48.el6.x86_64
1.2 没有安装使用yum安装即可
[root@localhost xinetd.d]# yum install telnet-server 安装telnet服务
1.3 检查telnet当前状态
[root@localhost etc]# chkconfig |grep telnet
telnet: off
如果为off需要将其改为on
[root@localhost xinetd.d]# chkconfig telnet on
[root@localhost xinetd.d]# chkconfig |grep telnet
telnet: on
1.4 重启xinetd服务
[root@localhost xinetd.d]# /etc/init.d/xinetd restart 重启xinetd服务
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
1.5 关闭防火墙
[root@localhost ~]#