From a4c4027419bb44abb5ac06ec05969e04955ca04c Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:57:05 +0100 Subject: [PATCH] rexec: add page (#11457) * rexec: add page * Update rexec.md * Update rexec.md Co-authored-by: K.B.Dharun Krishna * Update rexec.md Co-authored-by: Juri Dispan --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Juri Dispan --- pages/linux/rexec.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/linux/rexec.md diff --git a/pages/linux/rexec.md b/pages/linux/rexec.md new file mode 100644 index 000000000..bbfbfb983 --- /dev/null +++ b/pages/linux/rexec.md @@ -0,0 +1,21 @@ +# 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: . + +- 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}}`