LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   RSH On fedora core 3 (https://www.linuxquestions.org/questions/fedora-35/rsh-on-fedora-core-3-a-301726/)

deveshs 03-14-2005 11:45 PM

RSH On fedora core 3
 
Hi all,
I am trying to execute " rsh 'hostname' ls -l " on fedora core 3 from a RH9 machine I am
getting an error message 'Permission Denied.' How can I resolve this

I have already enabled the service and "rsh hostname" command is successfully running

what to do?
plz help me out.

{BBI}Nexus{BBI} 03-15-2005 12:47 AM

You should use ssh instead, rsh is highly insecure. The syntax with ssh is: ssh -l <username> <machinename>

sandgroper 03-15-2005 03:48 PM

Re: RSH On fedora core 3
 
Quote:

Originally posted by deveshs
Hi all,
I am trying to execute " rsh 'hostname' ls -l " on fedora core 3 from a RH9 machine I am
getting an error message 'Permission Denied.' How can I resolve this

I have already enabled the service and "rsh hostname" command is successfully running

what to do?
plz help me out.

On your FC3 machine edit the /etc/hosts.allow file and add the line

in.rshd : <client IP address or IP range /sub mask>


The correct syntax is
rsh -l <username> host <command>

deveshs 03-18-2005 02:01 AM

Hi,
The problem has been resolved by reinstalling the FC3 with X componants. Is there any X configuration file which is requered to execute the "rsh 'hostname' 'command name' " command?

kevingpo 06-21-2005 08:35 PM

Re: Re: RSH On fedora core 3
 
Quote:

Originally posted by sandgroper
On your FC3 machine edit the /etc/hosts.allow file and add the line

in.rshd : <client IP address or IP range /sub mask>


The correct syntax is
rsh -l <username> host <command>

This still doesn't make rsh passwordless :S

kevingpo 08-03-2005 05:38 AM

I just like to tell everybody that at last I found out why my rsh was using
Kerbos5 resulting in annoying messages (when am trying to get a clean passwordless rsh). As I analysed from the list:

Connection refused
Trying krb4
Connection refused
Trying normal

The first being a kerberos 5, then a version 4 try before finally a normal
being successful. I thought there must be more than one version of rsh installed. So I typed 'locate rsh'. I try the first on the list. I typed '/usr/bin/rsh localhost' and that worked fine. Then typed 'which rsh'. To my surprise it says '/usr/kerberos/bin/rsh'. I then
looked at my $PATH and see that that's the first folder that's being pathed. So I removed it. Problem solved.


All times are GMT -5. The time now is 06:23 AM.