CentOS 5.3 Linux系统开启telnet服务

1、CentOS 5.3默认已经安装好了telnet软件包
[root@zhuliting ~]# cat /etc/redhat-release
CentOS release 5.3 (Final)
[root@zhuliting ~]#  rpm -qa |grep telnet
telnet-server-0.17-39.el5
telnet-0.17-39.el5
如果没有,就执行:
[root@zhuliting ~]# yum install telnet telnet-server
[note] telnet-server这个好像没什么用,没有它也成功了
1、修改/etc/xinetd.d/krb5-telnet文件:
service telnet
{
    ...
    disable        = yes
}
将其中的disalbe = yes 字段,改为no
2、修改/etc/pam.d/remote文件,将下面一行注释掉:
auth       required     pam_securetty.so


3、在防火墙设置里,将telnet设置为信任的服务,或者关闭防火墙。

4、、重启telnet服务
[root@zhuliting ~]# service xinetd restart

否则,可能出现的错误:
1、
[root@zhuliting ~]## telnet zhuliting
Trying 192.168.149.166...
telnet: connect to address 192.168.149.183: Connection refused
telnet: Unable to connect to remote host: Connection refused

2、[root@zhuliting ~]# telnet zhuliting
Trying 192.168.149.166...
Connected to zhuliting (192.168.149.183).
Escape character is '^]'.

    zhuliting (Linux release 2.6.18-194.26.1.el5xen #1 SMP Tue Nov 9 14:13:46 EST 2010) (5)

login: root
Password:
Login incorrect
login:

你可能感兴趣的:(linux,centos,防火墙,service,character,login)