public inbox for gentoo-cluster@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-cluster] rsh failed : Connection reset by peer
@ 2009-01-05 15:33 Chuanwen Wu
  0 siblings, 0 replies; only message in thread
From: Chuanwen Wu @ 2009-01-05 15:33 UTC (permalink / raw
  To: gentoo-cluster

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-05 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 15:33 [gentoo-cluster] rsh failed : Connection reset by peer Chuanwen Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox