- 论坛徽章:
- 0
|
在HP UNIX主机之间建立信任关系
1. 在双节点的/etc/hosts文件中加入对方及自己的hostname&ip ,如:
[email=root@RX2640_1:/#more]root@RX2640_1:/#more[/email]
/etc/hosts
192.168.8.193 RX2640_1
192.168.8.251 rac1
192.168.8.194 RX2640_2
192.168.8.252 rac2
127.0.0.1 localhost loopback
2.如果要做限制用户的信任则在此用户的home目录下建立.rhosts文件,并在此文件中加入信任的主机,如:
[email=root@RX2640_1:/#more]root@RX2640_1:/#more[/email]
.rhosts
rac2
rac1
RX2640_1
RX2640_2
3.修改/etc/inetd.conf 文件中的rlogin及remsh项取消注释,即:
#bootps dgram udp wait root /usr/lbin/bootpd bootpd
#finger stream tcp nowait bin /usr/lbin/fingerd fingerd
login stream tcp6 nowait root /usr/lbin/rlogind rlogind -B /etc/issue
shell stream tcp6 nowait root /usr/lbin/remshd remshd
#exec stream tcp6 nowait root /usr/lbin/rexecd rexecd
#uucp stream tcp nowait root /usr/sbin/uucpd uucpd
#ntalk dgram udp wait root /usr/lbin/ntalkd ntalkd
#auth stream tcp6 wait bin /usr/lbin/identd identd
4.重新跟新应用修改的inetd.conf文件
[email=root@RX2640_1:/#inetd]root@RX2640_1:/#inetd[/email]
-c
5.测试配置:
#rlogin remotehost
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10757/showart_155491.html |
|