LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 11-17-2009, 06:03 PM   #1
jauch
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Question Problem to setup RSH


Hi!

I'm very lost with the rsh.

I need the rsh to use PVM.
But until now, the best that I get was make rsh work on the same computer.

My network is as follow:

A modem-router connected to internet.
A wireless router working like a "hub" connected to modem.
One Desktop and two notebooks connected via "wireless" to the wireless "router/hub"
The modem give the IP's to my machines (DHCP)

I'm trying to put rsh to work, but without success until now.

From notebook_1 to desktop, I get a "desktop: Unknown host" when I try to do this command: rsh desktop ls
If I try this command with the IP instead, I get a "connection timed out"...

I seted the hosts.equiv and the .rhosts file like I found here and on the net, but without success.

Until now, only from one machine (notebook_1), that I put a line with the word rsh on the securetty file, I can use rsh using "rsh localhost ls" or "rsh notebook_1 ls". Both forms work, even if "localhost" and "notebook_1" are not seted on the hosts.equiv file, since each form is on the .rhosts file

I see that on the "etc/hosts" file, on both machine, the "name" of the machine is seted to 127.0.0.2... (maybe this is the problem?)

Anyone can help me?

Thanks!
 
Old 11-17-2009, 08:00 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 2,779

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
You need to ensure you have network connectivity and name resolution first. If you're not running a local name server (dns) you will need to add entries in /etc/hosts on each machine for every other machine

eg.
/etc/hosts on pc1
Code:
10.0.0.1  router
10.0.0.2  pc1
10.0.0.3  pc2
10.0.0.4  pc3
.. you get the idea

Once this is complete, try testing connectivity from each machine to every other machine -

eg. From pc1:
Code:
ping router
ping pc2
ping pc3
cheers
 
Old 11-18-2009, 06:36 PM   #3
jauch
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hi kbp!

First, Thanks
I'll do a test right away!

But a litle doubt rised...

Because the IP's are dynamically assigned by the modem, I never know what is the IP before connect to the network.

It's possible to add or change the entry on the hosts file AFTER the pc is connected without the need to "restart" it to this take effect?

And this let to another doubt.

I can "ping" any machine on my network using the IP's...

It's "absolutly" necessary to have entries on the hosts file to use rsh????

Thanks again!
 
Old 11-18-2009, 11:25 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 2,779

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Pretty sure you need name resolution so maybe you'll have to switch the pc's to static ip addressing, either that or set up dhcp/dynamic update dns

Have you tried BCCD ? ... might give you less headaches
http://bccd.net/

cheers

Last edited by kbp; 11-18-2009 at 11:26 PM. Reason: BCCD ref
 
Old 11-19-2009, 03:47 PM   #5
jauch
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hello again Kbp

I will let the BCCD option in "stand by" for now (but is really interesting what I saw on the home page).
I think that is useful to learn how to do things like make my network work as I need (even if this is not so easy)

I'm trying to do thinks without have to make IP's static. This is because I'm trying to make the PVM work with minimal need to make changes on any network.

Well, after many tests, I get to make rsh work (and PVM too), using the IP. After set all the files that were need (like rhosts), the problem that prevented rsh to comunicate was the firewall, that was up and blocking anything. For the test I disabled the firewall on both machines (do not know if the firewall it's needed with my network, because the firewall of the modem and of the router), and get rsh, and after, the PVM to work (need to set the environment variables like PVM_ROOT yet).

Thanks for all and for the tip of BCCD that I will test on the near future.

I'll see the option of make DHCP update DNS that you said, but think that if this involve setting a DNS server or have a DHCP server other than that of the "modem" (or both things), maybe isn't a "good" choice to me for now.

Anyway, thanks again!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsh error: protocol failure in circuit setup Andrea Linux - Networking 5 09-17-2009 02:15 PM
rsh Setup maxy7710 Linux - Newbie 3 03-31-2009 02:16 AM
'rsh' - setup RedOctober45 Linux - Software 1 01-11-2008 07:07 PM
how to setup rsh or configure ssh properly cheeku Linux - Software 5 03-30-2006 08:47 AM
setup of IP addy, localhost, and rsh d4harvey Linux - Networking 2 09-07-2004 09:20 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration