rshsvc - Windows command-line utility to manage Remote Shell service
rshsvc -install [-m mappingserver]
rshsvc -remove
rshsvc -start [-m mappingserver] [-p]
rshsvc -stop
The rshsvc Windows command-line utility manages Remote Shell service, the server side for the TCP/IP utility rsh(1). It works the same way as the UNIX Remote Shell service. Rsh clients can access this service from both Windows and UNIX computers.
The action performed by the rshsvc command depends on the command option you supply. The rshsvc command accepts the following options and arguments:
You must have an .rhosts(5) file in the path
specified in the registry key
\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RshSvc\RhostsPath.
The default path is
The .rhosts file should include one or more of the following entries, each on a separate line:
M1 U1 [U2 U3 ....]where M1 is the name of the computer from which Rsh client can be run and U1, U2, and so on are names of the users who are permitted to access the Remote Shell service.
The Remote Shell service returns an "Access denied" message under the following conditions:
When the client tries to start a command, the Remote Shell service waits for a defined length of time for the command to be completed. This time-out period can be changed by modifying the following registry key: \HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RshSvc\DefaultTimeOut. The default value is 10 minutes.