Usage Information on Remote Shell (RSH) Command on Windows NT

Last reviewed: October 9, 1997
Article ID: Q170276
The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51, and 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, and 4.0

SUMMARY

This article explains how to use the Remote Shell (RSH) command on Windows NT against a UNIX server running the RSH service (daemon).

MORE INFORMATION

  1. On the UNIX computer running the RSH service, under the home directory for the user, create a file called ".rhosts".
2. Enter in this file the host name of the client (Windows NT Workstation
   or Windows NT Server) and the user name used to log on at the client as
   follows:

      ntclient username

   where "ntclient" is the name of the Windows NT computer, and "username"
   is the name of the user logged on to the Windows NT computer. IP address
   of the host is not acceptable; use the host name itself. There should be
   only one user name per line in this file. The Windows NT command
   "hostname" can be used to get the computer name, and the resource kit
   utility "whoami" can be used to get the logon name of the Windows NT
   computer. The domain name to which the user is logged on is ignored.


  • In the host's file on the UNIX computer, enter the host name of the Windows NT client and its IP address, so that the name can be resolved to the correct IP address.

    Because host names and user names are case sensitive, take special care to make sure the cases match the actual names.

  • On the Windows NT computer in the host's file, add an entry for the UNIX- host with its IP address.

    Then enter the following command at the Windows NT computer:

          rsh <Unix-host> -l <username> -n ls -l
    

    where Unix-host is the name of the UNIX host and username is the name of the user. All files in the home directory of the user on the UNIX host will be listed.

    Keywords          : nthowto NTINTEROP ntreskit NTSrvWkst nttcp ntutil kbinterop kbnetwork
    Version           : WinNT:3.5,3.51,4.0
    Platform          : winnt
    Issue type        : kbhowto

  • ================================================================================


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: October 9, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.