HP Unix server rlogin,remsh信任关系建立

HP Unix server rlogin,remsh之间建立信任关系
假设有unix server hosta,hostb

1.需要在hosta,hostb两台server上加入对方的hostname & ip
hosta [/]# more /etc/hosts | grep -i hostb
192.168.1.100    hostb

hostb [/]# more /etc/hosts | grep -i hosta
192.168.1.101    hosta

2.在.rhosts文件中加入信任的主机,以及用户
hosta [/]# more .rhosts
hostb          root

hostb [/]# more .rhosts
hosta          root

如果在hosta上rlogin hostb的话,只需要在hostb上的.rhosts加入 hosta root既可以。


3,修改/etc/inetd.conf文件的rlogind,remshd项,取消注释
#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
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

4.重新更新修改的inetd.conf文件的rlogin
hosta [/]# inetd -c 

5.测试
hosta [/] rlogin hostb

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24237320/viewspace-1990008/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24237320/viewspace-1990008/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值