Sodamhan.com

TL;DR

rexec

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.

  • Execute a command on a remote host:

rexec -h=remote_host ls -l

  • Specify the remote username on a remote host:

rexec -username=username -h=remote_host ps aux

  • Redirect stdin from /dev/null on a remote [h]ost:

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

  • Specify the remote Port on a remote host:

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

This document was created using the contents of the tldr project.