How to install / setup / configure rsh on opensuse 11.1

I tried to search the internet to find out the documentation for setting up rsh on my opensuse 11.1 but was unable to find one. So i 'm posting this to help others. I know it is preferrable to use ssh instead of rsh but oracle requires use of rsh. So please dont get back to me saying “use ssh”.

Note to moderator: I tried to add this to “how to” section but in vain due to “no permissions error”. So please do move this to appropriate section if required.

Scenario: I have 2 systems: sunny1 and sunny2. I have to rsh from sunny1 to sunny2 and vice versa

First we are gonna setup rsh to access sunny2 from sunny1

Disable firewall on both sunny1 and sunny2
Install rsh and rsh-server on both sunny1 and sunny2

on sunny2:
zypper search rsh
check if rsh and rsh-server are installed. if not install them.
gedit /etc/hosts.equiv
add the line below:
sunny1 oracle

The above line means allow user “oracle” from sunny1.
you could also add sunny1.mydomain.com . I have not yet tried using ipaddress. So its up to you.

chmod 600 /etc/hosts.equiv

gedit /etc/securetty
add the lines below:
rsh
rlogin
rexec

chkconfig rsh on
chkconfig rlogin on
chkconfig xinetd on
rcxinetd stop
rcxinetd start

create a new blank document named “abcd” on /home

on sunny1:

rsh sunny2 ls -l /home

Now you should be able to see file “abcd” with all other files in /home

Setup rsh to access sunny1 from sunny2 the same way.

Possible issues:
Check the hostnames on both the systems. check /var/log/messages for correct hostnames or network settings -> hostname/DNS tab

disable firewall

hostname issues: make sure you are able to ping the exact hostname entered in /etc/hosts.equiv

and as usual check /var/log/messages for any info.

Good luck.

But at least, when you see this as an Howto, you could start with explaining why one normaly does NOT use rsh and why. And then continue to describe why you nevertheless are in a situation that you can not live without rsh.

This to prevent newbees from thinking that they found the correct way to connect from one stystem to the other

Hi
A quick google came up with this snippet?

There are two ways of doing things–the secure way and the non-secure
way. Since version 10g R1, Oracle has included support for SSH and thus
instead of using rsh and rcp, you can use ssh and scp; “s” as you
guessed stands for secure. The rsh and rcp commands are not required
for RAC but for installation and patchset installation to copy files
across nodes.

Installation of SSH must be done before you begin Oracle installation.

Link:
<http://www.databasejournal.com/features/oracle/article.php/3600491/Securing-Remote-Access-and-Copy-with-SSH-and-SCP.htm&gt;


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 2:00, 1 user, load average: 0.36, 0.35, 0.27
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

I knowthis thread is quite old but I’m facing a problem related to this topic.
I need to execute a php script from a IBM iSeries server. The iSeries as far as we know does not support SSH, it supports TELNET and REXEC through the RUNRMTCMD command.
So to remotely execute the script I need to make rexec-server work on the Linux server.

I manage to install rsh and rsh-server using zypper.
Then I used chkconfig to enable those services.
I opened the 512, 513 and 514 ports and I restarted xinetd.
I added rsh, rlogin and rexec to /etc/securetty
I modified /etc/hosts.allow with in.rexecd : ALL, in.rshd : ALL and in.rlogind : ALL
I added the ip address of the clients in the .rhosts file under the user profile folder

What I’ve got: rsh and rlogin works like a charm from the client and from locally, rexec executes locally but it wont run remotely. It gives no error nor response. It simply waits for some response from server. Command used is rexec -d -l user -p pass server_ip_address command

Server /var/log/messages shows the connection attempt but nothing more. /var/log/xinetd.log shows the connection (START and EXIT) but it lasts 0 sec.

Any idea will be much appreciated,

Pancho

Maybe this will help someone with similar needs in th future.
I don’t know if all the editin mentioned on my previous post were needed but the one thing that made rexec work was adding the hostname of the client box to the /etc/hosts file.

131.107.2.3 ba-dc1.unitanba.corp ba-dc1

That solved the problem.

Pancho

Thank you Panchux.

Happy New Year.