Re: Cannot rsh from linux to aix

From: Rich Olver (keystonegeo_at_comcast.net)
Date: 09/21/04


Date: Tue, 21 Sep 2004 14:06:29 -0600

Mike:
    Thanks for your advice.

When I rlogin to the aixbox, and run 'who am i'. It gives me my name,
and 'linux box host name'. So it doesn't give an actual IP address.

Any other thoughts?

Thanks

Rich

"Michael Vilain " wrote:
> In article <aeOdnawEfv_V5c3cRVn-rQ@comcast.com>,
> Rich Olver <keystonegeo@comcast.net> wrote:
>
>
>>Hi:
>> I have an application which needs to use rsh to send commands from a
>>Linux box (RHEL3) to an AIX 4.3.3 rs/6000 box.
>>
>> The command just hangs.
>>IE > rsh aixbox date
>>will just sit there, for a long time.
>>
>>The user name, password, and user ID are the same on both boxes.
>>On the AIX box I have a .rhosts file correctly placed, and a hosts.equiv
>>file set up correctly.
>>
>>In fact, as you know, if you type 'rsh' without a command listed, it
>>will try to rlogin you in. This in fact works!
>>IE > rsh aixbox
>> will open a rlogin connection, without even asking for a password.
>>
>>I suspect that there's something going on with the Linux box, and the
>>output from the rsh command isn't being properly greeted upon it's return.
>>
>>Can anyone help?
>>
>>Thanks
>>Rich Olver
>>Denver
>
>
> Usually when there's some sort of delay like this in rsh [insert
> <generic warning about the inherent insecurity of rsh and telnet> here],
> it's usually because the remote system can't resolve the hostname of the
> local system.
>
> Try the following
>
> rsh aixbox
>
> aixbox $ who am i
> aixbox $ exit
>
> Is the last column of 'who am i' a pure IP address? Then fix this on
> the aixbox in DNS, NIS, LDAP, or the local files. Then try rsh with an
> argument.
>



Relevant Pages

  • Re: rsh: permission denied
    ... I change rsh in pam.conf and rlogin in various ways and test it. ... pam.conf when an upper command worked well is as follows. ... # rlogin service (explicit because of pam_rhost_auth) ...
    (comp.unix.solaris)
  • Re: Cannot rsh from linux to aix
    ... In article, Rich Olver wrote: ... Not to mention that you already mentioned that an rsh without a command works, ... redirecting stderr to stdout: 'rsh aixbox /bin/ps 2>&1'. ... >> local system. ...
    (comp.unix.admin)