LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2007, 10:24 PM   #1
lakeat
LQ Newbie
 
Registered: May 2007
Location: Shanghai
Distribution: Fedora, Kubuntu, IRIX
Posts: 11

Rep: Reputation: 0
Question rsh passwordless fail


Hi,
I'm a newbie
I want to do parallel computing, so i have to rsh a Computer B which has 30 cpus.
I know many people advice using ssh, but when i type
Code:
ssh 202.120.***.***
it failed,
but when i rsh it, it succeed, since my computer A works fine with openssh, so i think it is computer B which doesn't support ssh. so far i have to use rsh.
and my rsh keep asking me password, though I have followed many instructions on the internet on how to setup rsh password-less,
when i type,
Code:
lamboot -v <machines>
outcome is some hints on passwordless problem.
this makes me very frustrated, could anyone help me?
I have changed A's /etc/hosts.**** "disable" "yes" to "no", and ping B is okay, and B's ".rhosts" is setup, A's /etc/hosts.equiv is typed with A and B.
much appreciated!

Daniel
 
Old 05-24-2007, 08:16 AM   #2
fayez
Member
 
Registered: Aug 2004
Location: Amman
Distribution: Red Hat
Posts: 50

Rep: Reputation: 15
.rhosts must resides under the home directory of the user you want to use his account.
For example you have a user test on Host A, so you must create a new account test on Host B.
Then under test's home directory on Host B, edit .rhosts and add host A to it.
Then do the same for Host A:

-A's .rhosts contains one line:
B
-B's .rhosts:
A
try it, and let me know.
 
Old 05-25-2007, 01:11 AM   #3
lakeat
LQ Newbie
 
Registered: May 2007
Location: Shanghai
Distribution: Fedora, Kubuntu, IRIX
Posts: 11

Original Poster
Rep: Reputation: 0
Hi, thank you Fayez,
I think i have made a mistake, If i want to rsh B from A, I need to have the root right of B, and modify B's (not A's) /etc/hosts.allow, hosts.deny, hosts.equiv, /etc/inited.d/rlogin, etc.
and i heard there's another solution by setting up . rhosts file, following you Fayez,
now I have the same username, and the same $HOME path on both A and B -A's .rhosts contains one line:B; and B's .rhosts:A. both are set to use csh, but one is Linux the other is Unix (SGI-IRIX).
and now i still can't rsh B password-less.
Code:
connect to address 202.120.189.160 port 543:Connection refused
Trying krb4 rlogin...
connect to address 202.120.189.160 port 543:Connection refused
trying normal rlogin (/usr/bin/rlogin)
password:rlogin: connection closed.
much dissapointed, I dont have the root right of B, and also for the reason I am using a distributed heterogeneous network, so I want to give up this way, I decide to compile gcc on IRIX.

Regards

--------------------
Daniel
My Utmost
for HIS Highest!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use passwordless ssh sunhui Linux - Security 1 10-03-2006 08:29 PM
ssh passwordless question matticus Linux - Newbie 4 07-12-2006 03:45 AM
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
annoying messages from passwordless rsh kevingpo Fedora 5 08-10-2005 05:00 PM
Regarding Passwordless SSH nedian123 Linux - Software 1 08-05-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration