Re: Cannot rsh from linux to aix
From: Kevin Collins (spamtotrash_at_toomuchfiction.com)
Date: 09/22/04
- Previous message: P.T. Breuer: "Re: How to determine available system calls on a Unix/Linux system"
- In reply to: Rich Olver: "Re: Cannot rsh from linux to aix"
- Next in thread: Bill Marcum: "Re: Cannot rsh from linux to aix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Sep 2004 22:55:13 GMT
In article <SfidnUrH8ZgEFM3cRVn-iw@comcast.com>, Rich Olver wrote:
> 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
Not to mention that you already mentioned that an rsh without a command works,
so that is a suspect solution...
Have you tried any other commands besides 'date'? Try 'rsh aixbox /bin/ps' or
something else with a fully qualified path. You may also want to try
redirecting stderr to stdout: 'rsh aixbox /bin/ps 2>&1'. If your remote user
runs (t)csh or bash or some other shell that sources a dot file with rsh (korn
shell does not), it may be an issue with your dot file(s).
>
> "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.
User name and correct .rhosts/hosts.equiv entries are what matters - the
password is not used and neither is the UID (until AFTER the connection is
established).
>>>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.
>>
>
Kevin
- Previous message: P.T. Breuer: "Re: How to determine available system calls on a Unix/Linux system"
- In reply to: Rich Olver: "Re: Cannot rsh from linux to aix"
- Next in thread: Bill Marcum: "Re: Cannot rsh from linux to aix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]