rexec
linux
Execute a command on a remote host. Note: Use `rexec` with caution, as it transmits data in plain text. Consider secure alternatives like SSH for encrypted communication.
More info →Options (4)
-h, --hostbooleanExecute a command on a remote host
Example:
rexec {{[-h|--host]}} {{remote_host}} {{ls -l}}-u, --usernamebooleanSpecify the remote username on a remote host
Example:
rexec {{[-u|--username]}} {{username}} {{[-h|--host]}} {{remote_host}} {{ps aux}}-n, --noerrbooleanRedirect `stdin` from `/dev/null` on a remote host
Example:
rexec {{[-n|--noerr]}} {{[-h|--host]}} {{remote_host}} {{ls -l}}-P, --portbooleanSpecify the remote port on a remote host
Example:
rexec {{[-P|--port]}} {{1234}} {{[-h|--host]}} {{remote_host}} {{ls -l}}Examples (4)
Specify the remote username on a remote host
made by @shridhargupta | data from tldr-pages