Jump to content

Remote Shell

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Thue (talk | contribs) at 20:09, 29 December 2004 (New article (by the principle that if I need it and it isn't in wikipedia then I write it)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

rsh (remote shell) is a command line computer program which can execute shell commands as another user, and on another computer across a computer network. The remote system on which the rsh executes the command needs to be running the rshd daemon.

rsh originated as part of the unix operating system, along with rcp as part of the rlogin package on Berkeley Software Distribution version 4.2 in 1983. rsh has since been ported to other operating systems.

As described in the rlogin article, the rsh protocol is not secure for network use, because it to sends unencrypted information over the network, among other things. Some implementations also authenticate by sending unencrypted passwords over the network. rsh has largely been replaced by the very similar ssh (secure shell) program on untrusted networks like the internet.

As an example of rsh use, the following executes the command mkdir testdir as remoteuser on the computer remoteconputer

rsh -l remoteuser remotecomputer "mkdir testdir"

After the command has finished rsh terminates. If no command is specified then rsh will log in on the remote system using rlogin.

References