rexec Command Examples

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 information: https://www.gnu.org/software/inetutils/manual/html_node/rexec-invocation.html.

rexec -h={{remote_host}} {{ls -l}}

rexec -username={{username}} -h={{remote_host}} {{ps aux}}

rexec --no-err -h={{remote_host}} {{ls -l}}

rexec -P={{1234}} -h={{remote_host}} {{ls -l}}