public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [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

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