CentOS6 installation configuration rsh
General Information: a node: ip: 192.168.8.166 hostname: hadrtest01 two nodes: ip: 192.168.8.250 hostname: hadrtest02
1, two nodes were installed rsh, whether rsh-server package is already installed
yum -y install rsh rsh-server
2, modify /etc/xinetd.d/rlogin ensure disable = no line
# default: on # description: rlogind is the server for the rlogin (1) program The server # provides a remote login facility with authentication based on # privileged. . port numbers from trusted hosts service login { socket_type = stream wait = no user = root log_on_success + = USERID log_on_failure + = USERID server = /usr/sbin/in.rlogind disable = no }
The same two nodes modify
3, modify /etc/xinetd.d/rsh ensure disable = no line
[root @ hadrtest01 ~] # cat /etc/xinetd.d/rsh # default: on # description: The rshd server is the server for the rcmd (3) routine and, # consequently, for the rsh (1) program. The server provides # remote execution facilities with authentication based on # privileged port numbers from trusted hosts. service shell { socket_type = stream wait = no user = root log_on_success + = USERID log_on_failure + = USERID server = /usr/sbin/in.rshd disable = no }
The same two nodes modify
4, edit / etc / securetty, add rexec, rsh, rlogin three lines
echo "
rexec
rsh
rlogin
"> > / etc / securetty
5, edit the / etc / hosts, add two nodes ip, host name
[root @ hadrtest01 ~] # cat / etc / hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.8.166 hadrtest01
192.168.8.250 hadrtest02
two nodes also modify
6, modify ~ / .rhosts, add a node, two nodes host name, ip
[root @ hadrtest01 ~] # cat ~ / .rhosts
hadrtest01 root
hadrtest02 root
[root @ hadrtest02 ~] # cat ~ / .rhosts
hadrtest01 root
hadrtest02 root
7, respectively, to start the service two nodes reboot:
service xinetd restart
boot:
chkconfig xinetd on
8, a test node:
[root @ hadrtest01 ~] # rsh hadrtest02
Last login: Tue Feb 16 17:44:56 from hadrtest01
[root @ hadrtest02 ~] #
do not enter a password to log on two nodes indicates the installation was successful
two nodes:
[root @ hadrtest02 ~] # rsh hadrtest01
Last login: Tue Feb 16 17:39:35 from hadrtest02
[root @ hadrtest01 ~] #
without entering a password to log node represents a successful installation |