linux如何开启telnet服务?linux开启telnet服务的方法
linux如何开启telnet服务?很多朋友对于这个问题不知道该如何解决;今天小编将为大家带来linux开启telnet服务的方法,有需要的朋友一起去看看吧!
方法:
1. 切换至root用户;
2. 如果linux没有安装telnet服务需要先安装,安装过开通即可
3. 检测telnet的rpm包是否安装
[root@localhost ~]# rpm -qa telnet
telnet-0.17-48.el6.x86_64
[root@localhost ~]#
4. 安装telnet安装包:
[root@localhost ~]# rpm -ivh xinetd-2.3.14-34.el6.x86_64.rpm
warning: xinetd-2.3.14-34.el6.x86_64.rpm: header v3 rsa/sha256 signature, key id fd431d51: nokey
preparing... ########################################### [100%]
package xinetd-2:2.3.14-39.el6_4.x86_64 (which is newer than xinetd-2:2.3.14-34.el6.x86_64) is already installed
file /usr/sbin/xinetd from install of xinetd-2:2.3.14-34.el6.x86_64 conflicts with file from package xinetd-2:2.3.14-39.el6_4.x86_64
[root@localhost ~]#
5. 修改telnet服务配置文件
vi /etc/xinetd.d/telnet
service telnet
{
disable = yes
flags = reuse
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += userid
}
将disable=yes改为disable=no
注意:安装telnet-server服务后,系统才会有/usr/sbin/in.telnetd文件
6.重启telnet服务
[root@localhost root]#service xinetd restart
7. 测试是否可以,若果不行,检查防火墙是否关闭
[root@localhost ~]# telnet 127.0.0.1
trying 127.0.0.1...
connected to 127.0.0.1.
escape character is '^]'.
centos release 6.4 (final)
kernel 2.6.32-358.el6.x86_64 on an x86_64
login: