2023-11-11 17:02:18 +01:00
|
|
|
# rsh
|
|
|
|
|
|
|
|
> Execute commands on a remote host.
|
2025-08-16 10:31:07 +03:00
|
|
|
> More information: <https://www.gnu.org/software/inetutils/manual/inetutils.html#rsh-invocation>.
|
2023-11-11 17:02:18 +01:00
|
|
|
|
|
|
|
- Execute a command on a remote host:
|
|
|
|
|
|
|
|
`rsh {{remote_host}} {{ls -l}}`
|
|
|
|
|
|
|
|
- Execute a command on a remote host with a specific username:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`rsh {{remote_host}} {{[-l|--user]}} {{username}} {{ls -l}}`
|
2023-11-11 17:02:18 +01:00
|
|
|
|
|
|
|
- Redirect `stdin` to `/dev/null` when executing a command on a remote host:
|
|
|
|
|
|
|
|
`rsh {{remote_host}} --no-err {{ls -l}}`
|