LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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
Suppress error stream creation
$ 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 (TCP port 512). It authenticates with a username and password, then runs the specified command on the remote system.
Note: rexec transmits credentials and 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
Do not create a separate error stream
-d, --password password
Specify password (use '-' to read from stdin)

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)

Copied to clipboard
Kai