* [gentoo-user] rsh failed
@ 2008-10-20 3:37 Chuanwen Wu
2008-10-20 16:52 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2008-10-20 3:37 UTC (permalink / raw
To: gentoo-user
Hi,
I want to use iozone to test my cluster, and I found that iozone would use rsh.
But rsh never worked in my machine.
I have followed this guide
http://www.gentoo.org/doc/en/hpc-howto.xml#doc_chap2, which including
the configuration of rsh.
# eix netkit-rsh
[I] net-misc/netkit-rsh
Available versions: 0.17-r8 ~0.17-r9 {pam}
Installed versions: 0.17-r8(08:51:30 10/20/08)(pam)
Homepage: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Description: Netkit's Remote Shell Suite: rexec{,d}
rlogin{,d} rsh{,d}
# cat /etc/xinetd.d/rsh
service shell
{
socket_type = stream
protocol = tcp
wait = no
user = root
group = tty
server = /usr/sbin/in.rshd
log_type = FILE /var/log/rsh
log_on_success = PID HOST USERID EXIT DURATION
log_on_failure = USERID ATTEMPT
disable = no
}
# cat /etc/xinetd.d/rlogin
service login
{
socket_type = stream
protocol = tcp
wait = no
user = root
group = tty
server = /usr/sbin/in.rlogind
log_type = FILE /var/log/rlogin
log_on_success = PID HOST USERID EXIT DURATION
log_on_failure = USERID ATTEMPT
disable = no
}
I tried to rlogin(rlogin -l myuser host) and rsh(rsh -l myuser host
date) from the remote machine 192.168.0.7 and from localhost. Here is
the log:
# cat /var/log/rsh
08/10/20@09:58:39: START: shell pid=23802 from=127.0.0.1
08/10/20@09:58:48: EXIT: shell status=1 pid=23802 duration=9(sec)
08/10/20@09:58:53: START: shell pid=23857 from=127.0.0.1
08/10/20@09:58:59: EXIT: shell status=1 pid=23857 duration=6(sec)
08/10/20@10:17:21: START: shell pid=26446 from=192.168.0.7
08/10/20@10:17:21: FAIL: shell address
08/10/20@10:17:21: EXIT: shell status=0 pid=26446 duration=0(sec)
# cat /var/log/rlogin
08/10/20@10:19:04: START: login pid=26727 from=192.168.0.7
08/10/20@10:19:10: FAIL: login address
08/10/20@10:19:10: EXIT: login status=0 pid=26727 duration=6(sec)
08/10/20@10:39:31: START: login pid=28886 from=127.0.0.1
08/10/20@10:39:40: EXIT: login status=0 pid=28886 duration=9(sec)
08/10/20@10:39:46: START: login pid=28912 from=127.0.0.1
08/10/20@10:39:47: EXIT: login status=0 pid=28912 duration=1(sec)
So in a word, I can rlogin from localhost with common user(I meant not
root) but not from remote machine 192.168.0.7. And I can't use rsh at
all.
So anyone can help?
PS:
I just want to use iozone, and I am not very sure whether I can ssh in
the iozone clusting test or not. If I can use ssh without changing the
source of iozone(iozone is a benchmark tool, so I don't think it's a
good idea to change it), please let me know.
Thanks in advanced!
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-20 3:37 [gentoo-user] rsh failed Chuanwen Wu
@ 2008-10-20 16:52 ` Dirk Heinrichs
2008-10-21 3:09 ` Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Dirk Heinrichs @ 2008-10-20 16:52 UTC (permalink / raw
To: gentoo-user
Am Montag, 20. Oktober 2008 05:37:52 schrieb Chuanwen Wu:
> So in a word, I can rlogin from localhost with common user(I meant not
> root) but not from remote machine 192.168.0.7. And I can't use rsh at
> all.
>
> So anyone can help?
What's in your ~/.rhosts and what are its permissions? Additionally, what are
the permissions of your ~ directory?
Bye...
Dirk
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-20 16:52 ` Dirk Heinrichs
@ 2008-10-21 3:09 ` Chuanwen Wu
2008-10-21 5:40 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2008-10-21 3:09 UTC (permalink / raw
To: gentoo-user
Hi Dirk,
> What's in your ~/.rhosts and what are its permissions? Additionally, what are
> the permissions of your ~ directory?
In the server machine 192.168.0.1, I have .rhosts under /root and
/home/wcw, and they are both as same as below:
192.168.0.7 wcw
192.168.0.7 root
and
# cat /etc/hosts.equiv
192.168.0.7
The permission of "/home/wcw" is 755, and "/root" is 700.
When I tried to rlogin from 192.168.0.7 as the user "wcw" or "root", I
got the error below:
wcw@wcw-laptop ~ $ rlogin 192.168.0.1
rcmd: 192.168.0.1: Connection reset by peer
wcw-laptop ~ # rlogin 192.168.0.1
rcmd: 192.168.0.1: Connection reset by peer
Thanks for your help!
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-21 3:09 ` Chuanwen Wu
@ 2008-10-21 5:40 ` Dirk Heinrichs
2008-10-22 4:38 ` Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Dirk Heinrichs @ 2008-10-21 5:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
Am Dienstag 21 Oktober 2008 05:09:38 schrieb ext Chuanwen Wu:
> The permission of "/home/wcw" is 755, and "/root" is 700.
Looks good, but what about ~/.rhosts?
BTW: Did you restart xinetd after installation of rsh?
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-21 5:40 ` Dirk Heinrichs
@ 2008-10-22 4:38 ` Chuanwen Wu
2008-10-22 5:59 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2008-10-22 4:38 UTC (permalink / raw
To: gentoo-user
Hi,
On Tue, Oct 21, 2008 at 1:40 PM, Dirk Heinrichs
<dirk.heinrichs.ext@nsn.com> wrote:
> Am Dienstag 21 Oktober 2008 05:09:38 schrieb ext Chuanwen Wu:
>
>> The permission of "/home/wcw" is 755, and "/root" is 700.
>
> Looks good, but what about ~/.rhosts?
192.168.0.7 wcw
192.168.0.7 root
> BTW: Did you restart xinetd after installation of rsh?
Yes.
>
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-22 4:38 ` Chuanwen Wu
@ 2008-10-22 5:59 ` Dirk Heinrichs
2008-10-22 6:23 ` Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Dirk Heinrichs @ 2008-10-22 5:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
Am Mittwoch 22 Oktober 2008 06:38:50 schrieb ext Chuanwen Wu:
> > Looks good, but what about ~/.rhosts?
>
> 192.168.0.7 wcw
> 192.168.0.7 root
Permissions?
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-22 5:59 ` Dirk Heinrichs
@ 2008-10-22 6:23 ` Chuanwen Wu
2008-10-22 6:29 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2008-10-22 6:23 UTC (permalink / raw
To: gentoo-user
On Wed, Oct 22, 2008 at 1:59 PM, Dirk Heinrichs
<dirk.heinrichs.ext@nsn.com> wrote:
> Am Mittwoch 22 Oktober 2008 06:38:50 schrieb ext Chuanwen Wu:
>> > Looks good, but what about ~/.rhosts?
>>
>> 192.168.0.7 wcw
>> 192.168.0.7 root
>
> Permissions?
>
600
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsh failed
2008-10-22 6:23 ` Chuanwen Wu
@ 2008-10-22 6:29 ` Dirk Heinrichs
0 siblings, 0 replies; 8+ messages in thread
From: Dirk Heinrichs @ 2008-10-22 6:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
Am Mittwoch 22 Oktober 2008 08:23:38 schrieb ext Chuanwen Wu:
> On Wed, Oct 22, 2008 at 1:59 PM, Dirk Heinrichs
>
> <dirk.heinrichs.ext@nsn.com> wrote:
> > Am Mittwoch 22 Oktober 2008 06:38:50 schrieb ext Chuanwen Wu:
> >> > Looks good, but what about ~/.rhosts?
> >>
> >> 192.168.0.7 wcw
> >> 192.168.0.7 root
> >
> > Permissions?
>
> 600
Hmm, should also be ok, I'm running out of ideas. Anyone else?
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-10-22 6:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-20 3:37 [gentoo-user] rsh failed Chuanwen Wu
2008-10-20 16:52 ` Dirk Heinrichs
2008-10-21 3:09 ` Chuanwen Wu
2008-10-21 5:40 ` Dirk Heinrichs
2008-10-22 4:38 ` Chuanwen Wu
2008-10-22 5:59 ` Dirk Heinrichs
2008-10-22 6:23 ` Chuanwen Wu
2008-10-22 6:29 ` Dirk Heinrichs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox