rsh host [-l username] [-n] [-d] [-k realm] [-f | -F] [-x] [-PN | -PO] command
选件
-l username
|
将远程用户名设置为username。否则,远程用户名将与本地用户名相同。
|
-x
|
使网络会话流量被加密。这仅适用于输入和输出流,不适用于命令行。
|
-f
|
使不可转发的Kerberos凭据转发到远程计算机,以供指定命令使用。命令完成后,它们将被删除。此选项与-F选项互斥。
|
-F
|
导致将可转发的Kerberos凭据转发到远程计算机,以供指定的命令使用。命令完成后,它们将被删除。此选项与-f选项互斥。
|
-k realm
|
使rsh获取领域中的远程主机的票证,而不是krb_real-mofhost确定的远程主机的领域的票证。
|
-d
|
在用于与远程主机进行通信的TCP套接字上打开套接字调试。
|
-n
|
从/ dev / null重定向输入。
|
-PN, -PO
|
明确请求Kerberos“ rcmd ” 协议的新版本或旧版本。新协议避免了旧协议中存在的许多安全问题,但不能与旧服务器互操作。(“输入/输出错误”和关闭的连接是尝试此组合的最可能结果。)如果未指定任何选项,则使用一些简单的试探法来猜测尝试哪种方法。
|
如果您省略命令,则将执行rlogin登录到远程主机,而不是执行单个命令。
未引用的Shell 元字符在本地计算机上解释,而引用的元字符在远程计算机上解释。例如,以下命令:
rsh otherhost cat remotefile >> localfile
将远程文件remotefile 追加到本地文件localfile,同时:
rsh otherhost cat remotefile ">>" otherremotefile
将remotefile附加到otherremotefile。
请注意,交互式命令(例如文本编辑器)无法使用rsh远程执行;请改用rlogin。
档案
/etc/hosts
|
该主机名映射定义文件。
|
~/.k5login
|
在远程主机上,此文件可用于定义允许访问的Kerberos主体。
|
rsh host [-l username] [-n] [-d] [-k realm] [-f | -F] [-x] [-PN | -PO] command
Options
-l username
|
Sets the remote username to username. Otherwise, the remote username will be the same as the local username.
|
-x
|
Causes the network session traffic to be encrypted. This applies only to the input and output streams, and not the command line.
|
-f
|
Cause nonforwardable Kerberos credentials to be forwarded to the remote machine for use by the specified command. They will be removed when command finishes. This option is mutually exclusive with the -F option.
|
-F
|
Cause forwardable Kerberos credentials to be forwarded to the remote machine for use by the specified command. They will be removed when command finishes. This option is mutually exclusive with the -f option.
|
-k realm
|
Causes rsh to obtain tickets for the remote host in realm instead of the remote host's realm, as determined by krb_real-mofhost.
|
-d
|
Turns on socket debugging on the TCP sockets used for communication with the remote host.
|
-n
|
Redirects input from /dev/null.
|
-PN, -PO
|
Explicitly request new or old version of the Kerberos "rcmd" protocol. The new protocol avoids many security problems found in the old one, but is not interoperable with older servers. (An "input/output error" and a closed connection is the most likely result of attempting this combination.) If neither option is specified, some simple heuristics are used to guess which to try.
|
If you omit command, then instead of executing a single command, you will be logged in on the remote host using rlogin.
Shell metacharacters that are not quoted are interpreted on the local machine, while quoted metacharacters are interpreted on the remote machine. For example, the following command:
rsh otherhost cat remotefile >> localfile
appends the remote file remotefile to the local file localfile, while:
rsh otherhost cat remotefile ">>" otherremotefile
appends remotefile to otherremotefile.
Please note that interactive commands, such as a text editor, cannot be executed remotely with rsh; use rlogin instead.
Files
/etc/hosts
|
The hostname map definitions file.
|
~/.k5login
|
On the remote host, this file may be used to define the Kerberos principals that are allowed access.
|