LinuxCommandLibrary

rexec

Execute commands on remote hosts

TLDR

Execute a command on a remote host

$ rexec -h remote_host ls -l
copy
Specify the remote username
$ rexec -u username -h remote_host ps aux
copy
Redirect stdin from /dev/null
$ rexec -n -h remote_host ls -l
copy
Specify the remote port
$ rexec -P 1234 -h remote_host ls -l
copy

SYNOPSIS

rexec [options] command

DESCRIPTION

rexec executes commands on a remote host using the rexec protocol. It provides basic remote command execution capabilities.
Note: rexec transmits data in plain text and is insecure. Use SSH for encrypted remote command execution.

PARAMETERS

-h, --host host

Specify remote host
-u, --username user
Specify remote username
-P, --port port
Specify remote port
-n, --noerr
Redirect stdin from /dev/null

CAVEATS

Transmits credentials and data unencrypted. Not recommended for use over untrusted networks. Consider SSH as a secure alternative.

HISTORY

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

SEE ALSO

ssh(1), rsh(1), rlogin(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community