「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典イメージぴよ画像「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典

rsh

スポンサーリンク

何するコマンド?

他のコンピュータ上でコマンドを実行するときに使うコマンド



書き方

rsh [相手先ホスト] [オプション] [実行するコマンド]



オプション

オプション説明
-l【ユーザ名】ユーザ名】でログインするよ
-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うんちゃらかんちゃら
causes rsh to obtain tickets for the remote host in realm instead of the remote host’s realm as determined by krb_realmofhost(3).
-d相手先との通信に使われるTCPソケットに対して、デバッグを有効にするよ
rns on socket debugging (via setsockopt(2)) on the TCP sockets used for communication with the remote host.
-nコマンドの入力を「/dev/null」から取るよ。つまり入力なしでコマンドを実行するよ

補足事項

「rsh」コマンドは「rlogin」でお邪魔して、ささっとコマンドを実行して、こそっと逃げてくるイメージです。
例えば

rsh example.cm ls

のような形で実行します。

ただし、実行するには、接続先が「rsh」コマンドによる接続を受け付けていて、かつ、あれやこれやの設定がされている必要があります。
セキュリティの観点から見ると、誰彼かまわず好き勝手にコマンドを実行されたら困りますからね。
それなりに下準備をしておく必要があるのです。

下準備のやり方については、ここでは書きません
頑張って他のところで調べてください。

スポンサーリンク


書籍画像