LinuxCommandLibrary

rsh

Execute commands on remote hosts via remote shell

TLDR

Execute a command on a remote host

$ rsh remote_host ls -l
copy
Execute with specific username
$ rsh remote_host -l username ls -l
copy
Execute with stdin redirected to /dev/null
$ rsh remote_host --no-err ls -l
copy

SYNOPSIS

rsh [options] host [command]

DESCRIPTION

rsh (remote shell) executes commands on a remote host using the RSH protocol. It provides basic remote command execution capabilities.
Note: rsh transmits data unencrypted and is insecure. Use SSH for secure remote command execution.

PARAMETERS

-l, --user username

Specify remote username
--no-err
Redirect stdin from /dev/null

CAVEATS

Transmits credentials and data in plain text. Not recommended for use over untrusted networks. SSH is the secure alternative.

HISTORY

Part of GNU inetutils, providing classic Unix networking utilities. Superseded by SSH for security reasons.

SEE ALSO

ssh(1), rlogin(1), rcp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community