rexec: add page (#11457)

* 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>
pull/23/head
Sebastiaan Speck 2023-11-11 16:57:05 +01:00 committed by GitHub
parent 686f4ef026
commit a4c4027419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
pages/linux/rexec.md Normal file
View File

@ -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: <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}}`