HP Unix server rlogin,remsh信任關係建立

tolilong發表於2016-02-17
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章