public inbox for gentoo-cluster@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Chuanwen Wu" <wcw8410@gmail.com>
To: gentoo-cluster@lists.gentoo.org
Subject: [gentoo-cluster] rsh failed : Connection reset by peer
Date: Mon, 5 Jan 2009 23:33:21 +0800	[thread overview]
Message-ID: <7797aa370901050733lfe42d33ia34ab369fd80217f@mail.gmail.com> (raw)

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



                 reply	other threads:[~2009-01-05 15:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7797aa370901050733lfe42d33ia34ab369fd80217f@mail.gmail.com \
    --to=wcw8410@gmail.com \
    --cc=gentoo-cluster@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox