|
|
我有两台机器mylinux.com和node01.com,用户名分别为thelast和node01,ip地址分别为192.168.0.10和192.168.0.11.在两台机器上的用户根目录下都设置了.rhosts文件,属性是600.内容都为
mylinux thelast
node01 node01
在etc/xinetd.d/rsh中设置disable 为no
在etc/hosts中添加
192.168.0.10 mylinux.com mylinux
192.168.0.11 node01.com node01
在ect/hosts.allow中添加
ALL:192.168.0.10
ALL:192.068.0.11
最后,以root用户启动xinetd和rsh,命令如下
service xinetd start
sevice rsh start
然后在mylinux.com的终端中输入rsh node01
结果显示:node01.com connection refused
在node01中输入rsh mylinux 也显示mylinux.com connection refused
然后在mylinux.com的终端中输入rsh node01 date
结果显示:permission denied
在node01中输入rsh mylinux date 也显示permission denied
另外我的防火墙是关闭的。
请高手指教。 |
|