[gentoo-user] rsh failed : Connection reset by peer

2009-01-06 Thread Chuanwen Wu
Hi,
I want to use iozone to test my cluster, and I found that iozone need
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}

# eix xinet
[I] sys-apps/xinetd
Available versions:  2.3.14 {perl tcpd}
Installed versions:  2.3.14(09:02:57 PM 01/05/2009)(perl tcpd)
Homepage:http://www.xinetd.org/
Description: powerful replacement for inetd

# 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 have a node07 whose is is 192.168.1.7 and a master, whose ip is 192.168.1.1.
I tried to rlogin to master from node73 with any user (i mean both
root and other users), I got the error in node07:
node07 # rlogin -l root master
rcmd: master: Connection reset by peer

and I read the log from /var/log/rlogin in master:
# cat /var/log/rsh
[...]
09/1/5...@23:10:36: FAIL: login address
09/1/5...@23:10:36: START: login pid=8961 from=192.168.1.7
09/1/5...@23:10:36: EXIT: login status=0 pid=8961 duration=0(sec)

And the master can't rlogin to itself, too: with root, because t:
master # rlogin -l root localhost
Password:
Password:
Login incorrect
 /*rlogin with root,  the password is incorrect forever and Of course,
I am sure the password is correct */

master # rlogin -l wcw localhost
Password:
Last login: Mon Jan  5 23:23:06 CST 2009 from localhost on pts/8
rlogin: connection closed.
/*rlogin with other user(wcw), it will succeed, but the connection
will closed immediately  */

# cat /var/log/rsh
[...]
09/1/5...@23:20:09: START: login pid=10227 from=127.0.0.1
09/1/5...@23:21:17: EXIT: login status=0 pid=10227 duration=68(sec)
09/1/5...@23:22:13: START: login pid=10954 from=127.0.0.1
09/1/5...@23:22:15: EXIT: login status=0 pid=10954 duration=2(sec)

# cat /etc/hosts.allow
ALL:192.168.1.0/255.255.255.0

# cat /etc/hosts.equiv
master
node07

Anybody can help?
Thanks in advanced!

--
wcw



Re: [gentoo-user] rsh failed

2008-10-22 Thread Dirk Heinrichs
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: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net



signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] rsh failed

2008-10-22 Thread Chuanwen Wu
On Wed, Oct 22, 2008 at 1:59 PM, Dirk Heinrichs
[EMAIL PROTECTED] 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



Re: [gentoo-user] rsh failed

2008-10-22 Thread Dirk Heinrichs
Am Mittwoch 22 Oktober 2008 08:23:38 schrieb ext Chuanwen Wu:
 On Wed, Oct 22, 2008 at 1:59 PM, Dirk Heinrichs

 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net



signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] rsh failed

2008-10-21 Thread Chuanwen Wu
Hi,
On Tue, Oct 21, 2008 at 1:40 PM, Dirk Heinrichs
[EMAIL PROTECTED] 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



Re: [gentoo-user] rsh failed

2008-10-20 Thread Dirk Heinrichs
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



Re: [gentoo-user] rsh failed

2008-10-20 Thread Dirk Heinrichs
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: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net



signature.asc
Description: This is a digitally signed message part.


[gentoo-user] rsh failed

2008-10-19 Thread Chuanwen Wu
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/[EMAIL PROTECTED]:58:39: START: shell pid=23802 from=127.0.0.1
08/10/[EMAIL PROTECTED]:58:48: EXIT: shell status=1 pid=23802 duration=9(sec)
08/10/[EMAIL PROTECTED]:58:53: START: shell pid=23857 from=127.0.0.1
08/10/[EMAIL PROTECTED]:58:59: EXIT: shell status=1 pid=23857 duration=6(sec)
08/10/[EMAIL PROTECTED]:17:21: START: shell pid=26446 from=192.168.0.7
08/10/[EMAIL PROTECTED]:17:21: FAIL: shell address
08/10/[EMAIL PROTECTED]:17:21: EXIT: shell status=0 pid=26446 duration=0(sec)

# cat /var/log/rlogin
08/10/[EMAIL PROTECTED]:19:04: START: login pid=26727 from=192.168.0.7
08/10/[EMAIL PROTECTED]:19:10: FAIL: login address
08/10/[EMAIL PROTECTED]:19:10: EXIT: login status=0 pid=26727 duration=6(sec)
08/10/[EMAIL PROTECTED]:39:31: START: login pid=28886 from=127.0.0.1
08/10/[EMAIL PROTECTED]:39:40: EXIT: login status=0 pid=28886 duration=9(sec)
08/10/[EMAIL PROTECTED]:39:46: START: login pid=28912 from=127.0.0.1
08/10/[EMAIL PROTECTED]: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