Name

rsh

Synopsis

Runs commands on remote machines running the rsh service.

Syntax

rsh remotehost [-l username] [-n] command

Options

remotehost

The remote machine running the rsh service.

-l username

The credentials used to run the command on the remote host.

-n

Redirection of standard input of rexec to NULL. (Try using this for commands that run interactively.)

command

The command to remotely execute (enclose in quotes if there are embedded spaces).

Examples

Perform a directory listing on the Unix machine BONGO as user mitcht by remotely executing the ls command:

                     rsh bongo -l mitcht "ls ~"
doc
fig
read.ps

Notes

  • Windows 2000 includes only the client-side rsh command, so this command is typically used to remotely execute processes on Unix machines.

  • Unlike the rexec command discussed earlier, rsh does not prompt for a password before executing the command remotely. rsh uses the same authentication mechanism used by rcp, namely the .rhosts file on the remote machine.

See Also

rcp, rexec, telnet

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.