rsh【コマンド】
コマンドだよ
UNIX系と一部のWindowsで使えるよ
他のコンピュータ上でコマンドを実行するときに使うよ
スポンサーリンク
簡単に書くよ
rsh【コマンド】とは
コンピュータさんに対する命令文(コマンド)のひとつ
であり
他のコンピュータ上でコマンドを実行するときに使うコマンド
です。
詳しく書くよ
「rsh」コマンドは
ネットワーク経由で、他のコンピュータ上でコマンドを実行するときに使うコマンド
です。
UNIX系(LinuxとかMacとか)及び「一部の」Windows系で使えます。
書き方は
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」コマンドによる接続を受け付けていて、かつ、あれやこれやの設定がされている必要があります。
セキュリティの観点から見ると、誰彼かまわず好き勝手にコマンドを実行されたら困りますからね。
それなりに下準備をしておく必要があるのです。
下準備のやり方については、ここでは書きません
頑張って他のところで調べてください。
一言でまとめるよ
まぁ「rsh」ってコマンドが出てきたら「他のコンピュータ上でコマンドを実行するときに使うんだな~」と お考えください。
おまけ
■訳してみるよ
「r」は多分「remote(リモート)」の略です。
「remote(リモート)」の意味は「遠い」とか「遠方の」とか「遠隔の」とかです。
「sh」は多分「shell(シェル)」の略です。
「shell(シェル)」の意味は「殻」とか「貝殻」とかです。
何となく くっつけると
遠隔の殻
となります。
■検索してみる?






