mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 21:17:57 +01:00
a4c4027419
* rexec: add page * Update rexec.md * Update rexec.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update rexec.md Co-authored-by: Juri Dispan <juri.dispan@posteo.net> --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
684 B
684 B
rexec
Execute a command on a remote host. Note: Use
rexec
with caution, as it transmits data in plain text. Consider secure alternatives likessh
for encrypted communication. More information: https://www.gnu.org/software/inetutils/manual/html_node/rexec-invocation.html.
- Execute a command on a remote [h]ost:
rexec -h={{remote_host}} {{ls -l}}
- Specify the remote [u]sername on a remote [h]ost:
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 [P]ort on a remote [h]ost:
rexec -P={{1234}} -h={{remote_host}} {{ls -l}}