LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2006, 04:29 AM   #1
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Rep: Reputation: 0
rsh setting up


I am trying to set up rsh on Mandriva
I am needing to, I understand, among other things, install rsh, rshd and rsh-server. I need them to run a simulation of multiple-processing on my Linux box.

so I have tried both using easy-urpmi and in code.
I receive the following

Quote:
[root@pc427 xinetd.d]# urpmi rsh-server

installing rsh-server-0.17-14mdk.i586.rpm from /var/cache/urpmi/rpms
Preparing... #############################################
Installation failed:
file /usr/share/man/man8/rshd.8.bz2 from install of rsh-server-0.17-14mdk conflicts with file from package heimdal-rshd-0.7.1-1mdk
[root@pc427 xinetd.d]# urpmi.removemedia heimdal-rshd-0.7.1-1mdk
trying to select nonexistent medium "heimdal-rshd-0.7.1-1mdk"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Discovery CD1 (cdrom1).cz]
examining synthesis file ...

I understand this means that there is no such package, and it still clashes.
So I guess I have to remove it and use standard rsh. But how do I do that??
The files it is meant to use (according to easy-urpmi) are not there. Remove iin easy urpmi does nothing at all.
When I solve this I shall probably need more assistance.
 
Old 03-07-2006, 05:35 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
simulation of multiple-processing on my Linux box
Linux boxes can always handle multi-processing (multiple programs), even multi-user (multiple users logged in at same time). You don't need rsh for that.

When you login, you are using a shell like Bash to interprete your commands.
rsh, or remote shell, is simply another shell that allows you to execute commands on a remote machine (rather than on your local one).
However, rsh is deprecated and ssh is often considered as a more secure alternative. ssh encrypts the connections between your machine and the remote machine. This makes sure no clear text passwords are sent over the network to the other machine.

So, my first suggestion would be to use ssh instead of rsh. It requires a little more setup (RSA keys, etc), but it's generally safer.

As for urpmi, I don't really use it, so I can't help you with that. But, judging from what you've posted, it seems that you were installing an rsh server, whereas there was already one on the system (the heimdal one).
Either remove the heimdal rshd (are you sure it's "removemedia" and not something like "remove"?) and install the other one afterwards, or stick to the heimdal rsh and discontinue the installation of the new one.

Please also give some more details as to what you want to accomplish exactly.
 
Old 03-07-2006, 07:16 AM   #3
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by timmeke
Linux boxes can always handle multi-processing (multiple programs), even multi-user (multiple users logged in at same time). You don't need rsh for that.

When you login, you are using a shell like Bash to interprete your commands.
rsh, or remote shell, is simply another shell that allows you to execute commands on a remote machine (rather than on your local one).
However, rsh is deprecated and ssh is often considered as a more secure alternative. ssh encrypts the connections between your machine and the remote machine. This makes sure no clear text passwords are sent over the network to the other machine.

So, my first suggestion would be to use ssh instead of rsh. It requires a little more setup (RSA keys, etc), but it's generally safer.

As for urpmi, I don't really use it, so I can't help you with that. But, judging from what you've posted, it seems that you were installing an rsh server, whereas there was already one on the system (the heimdal one).
Either remove the heimdal rshd (are you sure it's "removemedia" and not something like "remove"?) and install the other one afterwards, or stick to the heimdal rsh and discontinue the installation of the new one.

Please also give some more details as to what you want to accomplish exactly.
Thanks
I can try to use ssh instead. But I am not too optimistic.
I am trying to use MPICH, which I run on a cluster, on a single machine, using multiple processes. The purpose is to serve as a simulation which is easier to debug than our cluster which is heavily firewalled and is not accessible to debuggers.

So I have generated a dsa key which I have placed in /rrot/.ssh/authorised_keys
I have set the permissions of that file to go-rwx
I have created a ssh-agent
I have configured the program MPICH to use ssh
That should have done it

But I am still getting the line
Quote:
pc427.dom.hadassah.org.il: Connection refused
It is this which I am trying to solve
 
Old 03-07-2006, 11:15 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
First try logging in using ssh. Firewalls can be blocking rsh and ssh ports too, which is understandable.
Try something like:
Code:
ssh rrot@pc427.dom.hadassah.org.il
Or do a simple telnet on port 22 of the remote machine to see if you get a connection or not.
If you don't, then there is most likely an intervening firewall.
 
Old 03-08-2006, 01:49 AM   #5
hoshen
LQ Newbie
 
Registered: Mar 2006
Location: UK and Israel
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by timmeke
First try logging in using ssh. Firewalls can be blocking rsh and ssh ports too, which is understandable.
Try something like:
Code:
ssh rrot@pc427.dom.hadassah.org.il
Or do a simple telnet on port 22 of the remote machine to see if you get a connection or not.
If you don't, then there is most likely an intervening firewall.
Thankshttp://images.linuxquestions.org/questions/images/smilies/newbie.gif
ssh and sshd are already working meanwhile. It was a good idea to try. rshd does not, but I can live without it.
I now have to solve using MPICH, but that is a new issue.
Many thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 10:34 AM
rsh drisay Slackware 2 11-11-2004 02:24 PM
rsh ziox Linux - Networking 1 10-27-2004 07:11 PM
rsh rightsidedown Linux - Newbie 3 07-16-2004 04:08 PM
how to use rsh?? nqduy Linux - Networking 2 08-21-2003 03:00 AM


All times are GMT -5. The time now is 11:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration