LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2619|回复: 0

关于rsh配置的问题?

[复制链接]
发表于 2005-9-14 17:14:35 | 显示全部楼层 |阅读模式
我要装gram,就要装OpenPBS,装OpenPBS之前要配置好rsh,可我的rsh怎么也配置不好,下面是rsh的结果:

[root@daisy ~]# rsh daisy.greed.com
connect to address 127.0.0.1: Connection refused
Trying krb4 rlogin...
connect to address 127.0.0.1: Connection refused
trying normal rlogin (/usr/bin/rlogin)
Password:
Last login: Tue Sep 13 21:13:42 on :0
You have new mail.



我的系统是fedora core 3,防火墙全关了。
rsh的配置如下:
             文件/etc/hosts的内容:
                   # Do not remove the following line, or various programs
                # that require network functionality will fail.
                127.0.0.1                daisy.greed.com daisy         localhost.localdomain localhost
                192.168.0.3             daisy.greed.com daisy

                文件/etc/hosts.equiv的内容:
                127.0.0.1 root
                192.168.0.2 daisy.greed.com
                127.0.0.1 daisy.greed.com

        文件/etc/hosts.allow的内容:

                #
                # hosts.allow        This file describes the names of the hosts         which are
                #                allowed to use the local INET services, as         decided
                #                by the '/usr/sbin/tcpd' server.
                ALL:ALLOW
       
        文件/etc/hosts.deny的内容:
                #
                # hosts.deny        This file describes the names of the hosts         which are
                #                *not* allowed to use the local INET         services, as decided
                #                by the '/usr/sbin/tcpd' server.
                #
                # The portmap line is redundant, but it is left to remind         you that
                # the new secure portmap uses hosts.deny and hosts.allow.          In particular
                # you should know that NFS uses portmap!
       
        文件/etc/securetty的内容:
                tty
                rexec
                rlogin
                rsh
                pts/0
                pts/1
       
        文件/root/.rhosts的内容:
                127.0.0.1 daisy.greed.com

        /etc/inetd.d中所有文件的Disable = yes全改为Disable = no


        /etc/pam.d中,文件rsh的内容:
                auth       sufficient   /lib/security/pam_nologin.so
                auth       optional     /lib/security/pam_securetty.so
                auth       sufficient   /lib/security/pam_env.so
                auth       sufficient   /lib/security/pam_rhosts_auth.so
                account  sufficient   /lib/security/pam_stack.so service=system-auth
                session   sufficient   /lib/security/pam_stack.so service=system-auth        



Trying krb4 rlogin  这是要求通过Kerberos的验证吗,我把服务klogin,Kerberos等全关了,而且与kerbros有关的服务是Kerberos5,也不应该是ktb4呀。从上面的结果看我还是登陆上了,是normal rlogin成功了,rsh与krb4 rlogin失败了。光这样openpbs能用吗?openpbs 我也装了几次了,原来qmgr还行,现在已经不行了,说是连接不上服务器,怀疑是rsh有问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表