FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-20-2008, 03:37 AM
"Chuanwen Wu"
 
Default rsh failed

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
 
Old 10-20-2008, 04:52 PM
Dirk Heinrichs
 
Default rsh failed

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
 
Old 10-21-2008, 03:09 AM
"Chuanwen Wu"
 
Default rsh failed

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
 
Old 10-21-2008, 05:40 AM
Dirk Heinrichs
 
Default rsh failed

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
 
Old 10-22-2008, 04:38 AM
"Chuanwen Wu"
 
Default rsh failed

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
 
Old 10-22-2008, 05:59 AM
Dirk Heinrichs
 
Default rsh failed

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
 
Old 10-22-2008, 06:23 AM
"Chuanwen Wu"
 
Default rsh failed

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
 
Old 10-22-2008, 06:29 AM
Dirk Heinrichs
 
Default rsh failed

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
 

Thread Tools




All times are GMT. The time now is 08:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org