* [gentoo-user] rsh failed : Connection reset by peer
@ 2009-01-06 8:44 Chuanwen Wu
2009-01-06 13:08 ` [gentoo-user] " Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2009-01-06 8:44 UTC (permalink / raw
To: gentoo-user
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] 8+ messages in thread
* [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-06 8:44 [gentoo-user] rsh failed : Connection reset by peer Chuanwen Wu
@ 2009-01-06 13:08 ` Chuanwen Wu
2009-01-06 13:17 ` Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2009-01-06 13:08 UTC (permalink / raw
To: gentoo-user
I think I have fixed part of the problem, I found this option
"only_from = localhost" in file /etc/xinetd.conf, and mask it.
And now I can rlogin into localhost or remotehost:
node07 # rlogin master
Password:
Last login: Tue Jan 6 20:40:36 CST 2009 from node07 on pts/4
rlogin: connection closed.
master # rlogin localhost
Password:
Last login: Tue Jan 6 20:56:42 CST 2009 from node07 on pts/8
rlogin: connection closed.
But as you can see, after login successfully, the connection is closed
immediately. I dont' know whether it's normal or not, as I never used
rsh before.
And now, although rlogin can be use, but rsh still don't work:
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-06 13:08 ` [gentoo-user] " Chuanwen Wu
@ 2009-01-06 13:17 ` Chuanwen Wu
2009-01-06 15:39 ` Chuanwen Wu
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2009-01-06 13:17 UTC (permalink / raw
To: gentoo-user
I am very sorry for the last e-mail, as I intented to save the email
but clicked the "send" button.
I will continue the last letter below.
On Tue, Jan 6, 2009 at 9:08 PM, Chuanwen Wu <wcw8410@gmail.com> wrote:
> I think I have fixed part of the problem, I found this option
> "only_from = localhost" in file /etc/xinetd.conf, and mask it.
> And now I can rlogin into localhost or remotehost:
> node07 # rlogin master
> Password:
> Last login: Tue Jan 6 20:40:36 CST 2009 from node07 on pts/4
> rlogin: connection closed.
>
> master # rlogin localhost
> Password:
> Last login: Tue Jan 6 20:56:42 CST 2009 from node07 on pts/8
> rlogin: connection closed.
>
> But as you can see, after login successfully, the connection is closed
> immediately. I dont' know whether it's normal or not, as I never used
> rsh before.
>
> And now, although rlogin can be use, but rsh still don't work:
/*rsh into remotehost*/
node07 # rsh -l wcw master pwd
assword: aaaa
^C
/* rsh into localhost */
master # rsh localhost pwd
assword: aaaaa
^C
It's very weird as you can see above, after I entered the rsh command,
the "assword" but not "password" appleared. The "aaaa" is the
characters I typed.
Any help will be very appreciated!
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-06 13:17 ` Chuanwen Wu
@ 2009-01-06 15:39 ` Chuanwen Wu
2009-01-08 4:51 ` Matt Harrison
0 siblings, 1 reply; 8+ messages in thread
From: Chuanwen Wu @ 2009-01-06 15:39 UTC (permalink / raw
To: gentoo-user
I guessed it is the pam problem, and I re-installed netkit-rsh with
USE=-pam, now I can use rsh with common users, but root still not
work:
# rsh -l wcw master date
Tue Jan 6 23:33:35 CST 2009
# rsh -l root master date
Permission denied.
Everytime when I tried to use root to login, I got the error
"Permission denied."
master # cat /root/.rhosts
node07 root
node07 wcw
master # ls -l /root/.rhosts
-rw------- 1 root root 33 Jan 6 23:31 /root/.rhosts
I guess maybe rsh does not allow to login as root. So anyway to solved
this problem?
Thanks!
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-06 15:39 ` Chuanwen Wu
@ 2009-01-08 4:51 ` Matt Harrison
2009-01-08 9:52 ` Peter Humphrey
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Matt Harrison @ 2009-01-08 4:51 UTC (permalink / raw
To: gentoo-user
Chuanwen Wu wrote:
> I guess maybe rsh does not allow to login as root.
Probably not, RSH was abandoned years ago and I'm surprised there are
any applications still around that haven't moved to ssh.
Exposing the root user to an already unsafe transmission is asking for
trouble IMHO.
Unfortunately I can't help with the configuration but I thought a brief
warning should accompany any discussion on RSH.
Matt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-08 4:51 ` Matt Harrison
@ 2009-01-08 9:52 ` Peter Humphrey
2009-01-08 13:20 ` Eric Martin
2009-01-08 15:17 ` Chuanwen Wu
2 siblings, 0 replies; 8+ messages in thread
From: Peter Humphrey @ 2009-01-08 9:52 UTC (permalink / raw
To: gentoo-user
On Thursday 08 January 2009 04:51:27 Matt Harrison wrote:
> RSH was abandoned years ago and I'm surprised there are any applications
> still around that haven't moved to ssh.
$ equery l rsh
[ Searching for package 'rsh' in all categories among: ]
* installed packages
[I--] [ ] net-misc/netkit-rsh-0.17-r9 (0)
$ equery d netkit-rsh
[ Searching for packages depending on netkit-rsh... ]
x11-apps/xsm-1.0.1 (net-misc/netkit-rsh)
$ equery d xsm
[ Searching for packages depending on xsm... ]
x11-apps/xinit-1.0.5-r1 (!minimal? x11-apps/xsm)
$ equery d xinit
[ Searching for packages depending on xinit... ]
kde-base/kdm-3.5.9 (x11-apps/xinit)
x11-base/xorg-server-1.3.0.0-r6 (x11-apps/xinit)
x11-base/xorg-x11-7.2 (>=x11-apps/xinit-1.0.3)
In other words, you can't have X without rsh (other than a minimal X
installation, perhaps).
I was surprised too.
--
Rgds
Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-08 4:51 ` Matt Harrison
2009-01-08 9:52 ` Peter Humphrey
@ 2009-01-08 13:20 ` Eric Martin
2009-01-08 15:17 ` Chuanwen Wu
2 siblings, 0 replies; 8+ messages in thread
From: Eric Martin @ 2009-01-08 13:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
Matt Harrison wrote:
> Chuanwen Wu wrote:
>> I guess maybe rsh does not allow to login as root.
>
> Probably not, RSH was abandoned years ago and I'm surprised there are
> any applications still around that haven't moved to ssh.
>
> Exposing the root user to an already unsafe transmission is asking for
> trouble IMHO.
>
> Unfortunately I can't help with the configuration but I thought a
> brief warning should accompany any discussion on RSH.
>
> Matt
>
>
Doesn't ssh work as a drop in replacement for rsh? Try ssh instead. I
know in cvs, there's an environment variable CVS_RSH that you set to ssh
and everything works fine.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: rsh failed : Connection reset by peer
2009-01-08 4:51 ` Matt Harrison
2009-01-08 9:52 ` Peter Humphrey
2009-01-08 13:20 ` Eric Martin
@ 2009-01-08 15:17 ` Chuanwen Wu
2 siblings, 0 replies; 8+ messages in thread
From: Chuanwen Wu @ 2009-01-08 15:17 UTC (permalink / raw
To: gentoo-user
Hi, thank all you guys!
I give up rsh and trying using ssh now. I stiil find some problem and
have started a new thread.
On Thu, Jan 8, 2009 at 12:51 PM, Matt Harrison
<iwasinnamuknow@genestate.com> wrote:
> Chuanwen Wu wrote:
>>
>> I guess maybe rsh does not allow to login as root.
>
> Probably not, RSH was abandoned years ago and I'm surprised there are any
> applications still around that haven't moved to ssh.
>
> Exposing the root user to an already unsafe transmission is asking for
> trouble IMHO.
>
> Unfortunately I can't help with the configuration but I thought a brief
> warning should accompany any discussion on RSH.
>
> Matt
>
>
>
--
wcw
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-01-08 15:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 8:44 [gentoo-user] rsh failed : Connection reset by peer Chuanwen Wu
2009-01-06 13:08 ` [gentoo-user] " Chuanwen Wu
2009-01-06 13:17 ` Chuanwen Wu
2009-01-06 15:39 ` Chuanwen Wu
2009-01-08 4:51 ` Matt Harrison
2009-01-08 9:52 ` Peter Humphrey
2009-01-08 13:20 ` Eric Martin
2009-01-08 15:17 ` Chuanwen Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox