1 |
Hi, |
2 |
I want to use iozone to test my cluster, and I found that iozone need |
3 |
rsh. But rsh never worked in my machine. |
4 |
|
5 |
I have followed this guide |
6 |
http://www.gentoo.org/doc/en/hpc-howto.xml#doc_chap2, which including |
7 |
the configuration of rsh. |
8 |
|
9 |
# eix netkit-rsh |
10 |
[I] net-misc/netkit-rsh |
11 |
Available versions: 0.17-r8 ~0.17-r9 {pam} |
12 |
Installed versions: 0.17-r8(08:51:30 10/20/08)(pam) |
13 |
Homepage: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/ |
14 |
Description: Netkit's Remote Shell Suite: rexec{,d} |
15 |
rlogin{,d} rsh{,d} |
16 |
|
17 |
# eix xinet |
18 |
[I] sys-apps/xinetd |
19 |
Available versions: 2.3.14 {perl tcpd} |
20 |
Installed versions: 2.3.14(09:02:57 PM 01/05/2009)(perl tcpd) |
21 |
Homepage: http://www.xinetd.org/ |
22 |
Description: powerful replacement for inetd |
23 |
|
24 |
# cat /etc/xinetd.d/rsh |
25 |
service shell |
26 |
{ |
27 |
socket_type = stream |
28 |
protocol = tcp |
29 |
wait = no |
30 |
user = root |
31 |
group = tty |
32 |
server = /usr/sbin/in.rshd |
33 |
log_type = FILE /var/log/rsh |
34 |
log_on_success = PID HOST USERID EXIT DURATION |
35 |
log_on_failure = USERID ATTEMPT |
36 |
disable = no |
37 |
} |
38 |
|
39 |
# cat /etc/xinetd.d/rlogin |
40 |
service login |
41 |
{ |
42 |
socket_type = stream |
43 |
protocol = tcp |
44 |
wait = no |
45 |
user = root |
46 |
group = tty |
47 |
server = /usr/sbin/in.rlogind |
48 |
log_type = FILE /var/log/rlogin |
49 |
log_on_success = PID HOST USERID EXIT DURATION |
50 |
log_on_failure = USERID ATTEMPT |
51 |
disable = no |
52 |
} |
53 |
|
54 |
I have a node07 whose is is 192.168.1.7 and a master, whose ip is 192.168.1.1. |
55 |
I tried to rlogin to master from node73 with any user (i mean both |
56 |
root and other users), I got the error in node07: |
57 |
node07 # rlogin -l root master |
58 |
rcmd: master: Connection reset by peer |
59 |
|
60 |
and I read the log from /var/log/rlogin in master: |
61 |
# cat /var/log/rsh |
62 |
[...] |
63 |
09/1/5@23:10:36: FAIL: login address |
64 |
09/1/5@23:10:36: START: login pid=8961 from=192.168.1.7 |
65 |
09/1/5@23:10:36: EXIT: login status=0 pid=8961 duration=0(sec) |
66 |
|
67 |
And the master can't rlogin to itself, too: with root, because t: |
68 |
master # rlogin -l root localhost |
69 |
Password: |
70 |
Password: |
71 |
Login incorrect /*rlogin with root, the password is |
72 |
incorrect forever and Of course, I am sure the password is correct */ |
73 |
|
74 |
master # rlogin -l wcw localhost |
75 |
Password: |
76 |
Last login: Mon Jan 5 23:23:06 CST 2009 from localhost on pts/8 |
77 |
rlogin: connection closed. /*rlogin with other user(wcw), it will |
78 |
succeed, but the connection will closed immediately */ |
79 |
|
80 |
# cat /var/log/rsh |
81 |
[...] |
82 |
09/1/5@23:20:09: START: login pid=10227 from=127.0.0.1 |
83 |
09/1/5@23:21:17: EXIT: login status=0 pid=10227 duration=68(sec) |
84 |
09/1/5@23:22:13: START: login pid=10954 from=127.0.0.1 |
85 |
09/1/5@23:22:15: EXIT: login status=0 pid=10954 duration=2(sec) |
86 |
|
87 |
# cat /etc/hosts.allow |
88 |
ALL:192.168.1.0/255.255.255.0 |
89 |
|
90 |
# cat /etc/hosts.equiv |
91 |
master |
92 |
node07 |
93 |
|
94 |
Anybody can help? |
95 |
Thanks in advanced! |
96 |
|
97 |
-- |
98 |
wcw |