← 返回命令列表

Linux command

rexec 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

rexec -h remote_host ls -l

Example

rexec -u username -h remote_host ps aux

Example

rexec -n -h remote_host ls -l

Example

rexec -P 1234 -h remote_host ls -l

说明

rexec executes commands on a remote host using the rexec protocol (TCP port 512). It authenticates with a username and password, then runs the specified command on the remote system. Note: rexec transmits credentials and data in plain text and is insecure. Use SSH for encrypted remote command execution.

参数

-h, --host _host_
Specify remote host
-u, --username _user_
Specify remote username
-P, --port _port_
Specify remote port
-n, --noerr
Do not create a separate error stream
-d, --password _password_
Specify password (use '-' to read from stdin)

FAQ

What is the rexec command used for?

rexec executes commands on a remote host using the rexec protocol (TCP port 512). It authenticates with a username and password, then runs the specified command on the remote system. Note: rexec transmits credentials and data in plain text and is insecure. Use SSH for encrypted remote command execution.

How do I run a basic rexec example?

Run `rexec -h remote_host ls -l` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --host _host_ do in rexec?

Specify remote host