Gentoo Archives: gentoo-user

From: Chuanwen Wu <wcw8410@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] rsh failed : Connection reset by peer
Date: Tue, 06 Jan 2009 08:44:25
Message-Id: 7797aa370901060044x3452fb1ch6239f4bad6913ac1@mail.gmail.com
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
72 /*rlogin with root, the password is incorrect forever and Of course,
73 I am sure the password is correct */
74
75 master # rlogin -l wcw localhost
76 Password:
77 Last login: Mon Jan 5 23:23:06 CST 2009 from localhost on pts/8
78 rlogin: connection closed.
79 /*rlogin with other user(wcw), it will succeed, but the connection
80 will closed immediately */
81
82 # cat /var/log/rsh
83 [...]
84 09/1/5@23:20:09: START: login pid=10227 from=127.0.0.1
85 09/1/5@23:21:17: EXIT: login status=0 pid=10227 duration=68(sec)
86 09/1/5@23:22:13: START: login pid=10954 from=127.0.0.1
87 09/1/5@23:22:15: EXIT: login status=0 pid=10954 duration=2(sec)
88
89 # cat /etc/hosts.allow
90 ALL:192.168.1.0/255.255.255.0
91
92 # cat /etc/hosts.equiv
93 master
94 node07
95
96 Anybody can help?
97 Thanks in advanced!
98
99 --
100 wcw

Replies

Subject Author
[gentoo-user] Re: rsh failed : Connection reset by peer Chuanwen Wu <wcw8410@×××××.com>