在CentOS系统上如何配置rsh,rcp,scp多节点互通(2)
发布时间:2021-06-06
发布时间:2021-06-06
HELLO
iv 14. 15.#virtual 16.192.168.2.111 rac1-vip.localdomain rac1-vip 17.192.168.2.112 rac2-vip.localdomain rac2-vip 8、在CentOS系统编辑~/.rhosts,如下所示
[root@rac1 ~]# cat ~/.rhosts
+rac1 root
+rac2 root
+rac1-priv root
+rac2-priv root
9、测试rlogin和rsh是否可以不用输入密码登录其他节点
1.[root@rac1 ~]# rlogin rac2 2.connect to address 192.168.2.102 port 543: Connection refused 3.Trying krb4 rlogin... 4.connect to address 192.168.2.102 port 543: Connection refused 5.trying normal rlogin (/usr/bin/rlogin) st login: Wed Jan 13 08:39:17 from rac1 7.[root@rac2 ~]# hostname 8.rac2.localdomain 9.[root@rac2 ~]# exit 10.logout 11.rlogin: connection closed. 12.[root@rac1 ~]# rsh rac2 13.connect to address 192.168.2.102 port 543: Connection refused 14.Trying krb4 rlogin... 15.connect to address 192.168.2.102 port 543: Connection refused 16.trying normal rlogin (/usr/bin/rlogin) st login: Wed Jan 13 08:47:22 from rac1 18.[root@rac2 ~]# hostna
me 19.rac2.localdomain 20.[root@rac2 ~]# exit 21.logout 22.rlogin: connection closed. 23. 这样,我们就完成了在CentOS系统配置rsh,rcp,scp多节点互通,而且不需要密码。
下一篇:矿用隔爆型干式变压器电磁优化程序