LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsh : connection refused problem on RH9 (https://www.linuxquestions.org/questions/linux-software-2/rsh-connection-refused-problem-on-rh9-207177/)

haoscar 07-19-2004 08:19 PM

rsh : connection refused problem on RH9
 
Hi ,
I installed MPICH on my RH9 box. MPICH uses rsh for communicating with localhost. It has occured to me that rsh is refusing conections.

I searched on the net and found that I need to make a .rhosts file in every user directory and it should have the hostname & username to use for rsh.

Even a command like rsh localhost /bin/ls is returning connection refused.

I saw a previous post on this forum which said that there was need to make a rsh file for xinetd to start it. I dont have that file looks like.

How do I go about creating it. & making rsh work??.Please help,

Best regards
haoscar

osvaldomarques 07-19-2004 09:18 PM

You have to see if the rshd server is installed. Normally this daemon receives the name "/usr/sbin/in.rshd". If you don't have it all you need is to install the rhsd package of your distribution. After install the package you will have "/etc/xinetd.d/rsh" which you must inspect/edit because there is a line "disable = yes" in this file. If this line is as I wrote it, you must edit it to "disable = no". After save this file, you must restart xinetd: "service xinetd restart". You don't have to put a .rhosts file in each user. You have just edit /etc/hosts.equiv to contain a list of trusted hosts and also a .rhosts in the /root directory which is the home for root. You have also put a line with "rsh" in /etc/securetty.

I hope this helps.

haoscar 07-19-2004 10:53 PM

wont putting .rhosts file in root directory give access to run absolutely any command remotely.Isnt this dangerous. Or it not a thing to worryy??
Thanks for your reply,
haoscar

osvaldomarques 07-19-2004 11:12 PM

Any command really could be run but just from the machines you specify in /etc/hosts.equiv and /root/.rhosts.


All times are GMT -5. The time now is 05:09 AM.