Команда rsh

Runs a command on another computer.

Синтаксис

rsh [options] [ -l username ] hostname [#port] command

or

remsh [options] [ -l username ] hostname [#port] command

-nRedirect the input of rsh to /dev/null. You sometimes need this option to avoid unfortunate interactions between rsh and the shell which invokes it. For example, if you are running rsh and invoke a rsh in the background without redirecting its input away from the terminal, it will block even if no reads are posted by the remote command. The -n option will prevent this.
+aEnable authentication agent forwarding.
-aDisable authentication agent forwarding.
+xEnable X11 connection forwarding.
-xDisable X11 connection forwarding.
-i fileIdentity file for public key authentication
-F fileRead an alternative configuration file.
-tTty; allocate a tty even if command is given.
-vVerbose; display verbose debugging messages. Equal to `-d 2'
-d levelSet debug level.
-VDisplay version number only.
-qQuiet; don't display any warning messages.
-f[o]Fork into background after authentication. With optional 'o' argument, goes to "one-shot" mode.
-e charSet escape character; ``none'' = disable (default: ~).
-c cipherSelect encryption algorithm. Multiple -c options are allowed and a single -c flag can have only one cipher.
-p portConnect to this port. Server must be on the same port.
-PDon't use priviledged source port.
-SDon't request a session channel.
-L listen-port:host:portForward local port to remote address. Cause ssh to listen for connections on a port, and forward them to the other side by connecting to host:port.
-R listen-port:host:portForward remote port to local address. Cause ssh to listen for connections on a port, and forward them to the other side by connecting to host:port.
+CEnable compression.
-CDisable compression.
-o 'option'Process the option as if it was read from a configuration file.
-l usernameUse username as the remote username instead of your local username. In the absence of this option, the remote username is the same as your local username.
hostnameThe name of the other computer or host.
commandThe command to be executed on the hostname

Примеры

rsh +a comphope.com ls - Logs onto comphope.com after authentication (because using +a) and after authentication processes in this case the ls command and then disconnects.

The rsh cannot be used to run interactive commands. Instead use the rlogin command.

Обратно к списку команд