HP/Works

Home Join! Events PING! Committee Directory

Go to: PING INDEX : DECEMBER 1997 CONTENTS : HINTS AND TIPS

PROBLEM 2: I'm using Windows NT 4.0 and rsh to a 9.04 unix system. When I issue the command:


    rsh ip_address -l <username> <command>

I receive the following error:


remshd: login incorrect
rsh: can't establish connection

What should I do to correct this?

Configuration:


Operating System - HP-UX
Version - 9.04
Hardware System - HP 9000
Series - G30

SOLUTION

The key to this problem is making sure the name resolution is seen correctly by both systems and that user account names on both sides match.

  1. Create a user account on the unix system that matches the user account name on the Windows NT 4.0 workstation.
  2. Create an rhosts. in the users account directory on the unix system. The contents of the rhosts. should be:
    
        <hostname of Windows NT box>  <user name of NT user>
    

    Permissions on the rhosts. should be at least 644 and owned by the unix user account or root.

  3. You should also check the name resolution of the NT box from the perspective of the Unix box by issuing the command:
    
        who -R
    

    In the ( ) you will see how the Unix box sees the NT box coming in. This is the name that needs to be in the rhosts. file for <hostname>

  4. Login on the Windows NT workstation, goto the COMMAND prompt and issue the command:
    
        rsh <hostname of unix box> <command to execute>
    

You should now have the output from the command without errors.

Problem Three : Printing to NT From HP-UX


Home