检查:vim
首先经过 rpm -qa | grep telnet* 查看是否安装telnet-server软件。服务器
安装:ide
若没有,则能够能够经过yum install telnet-server(注:安装服务器端) 或 yum install telnet*(注:此处同时安装服务器端和客户端)。安装好以后能够经过rpm -qa | grep telnet* 查看。测试
编辑配置文件:ui
安装以后开启服务,须要编辑配置文件/etc/xinetd.d/telnet spa
[root@localhost ~]# vim /etc/xinetd.d/telnet 3d
保存并退出以后:rest
开启服务:server
[root@localhost ~]# chkconfig telnet onblog
[root@localhost ~]# service xinetd restart 【此处也能够用/etc/rc.d/init.d/xinetd restart】
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
测试:
[root@localhost pam.d]# telnet localhost
没法登录,解决方法:修改/etc/pam.d/remote,注释掉:auth required pam_securetty.so
而后在尝试telnet登陆
[root@localhost pam.d]# telnet localhost
输入用户名和密码后便可登陆。
即Telnet服务开启成功!