Internet Direct (Indy) Version 9.0.1 Beta
TIdRSH
This class implements Unix Remote Shell (RSH) as a client.

TIdRSH = class(TIdRemoteCMDClient)
Description
This class implements Unix Remote Shell (RSH) as a client. The RSH protocol is sometimes used to run tasks from remote locations without having to send passwords to a remote system. This protocol was originally intended as a temporary "hack" in some older Berkeley Unix Distributions that came into wide usage.

Note that this protocol can pose a security hazard on the Internet as it only uses user ID's which are sent in plain-text, IP Addresses that are used as part of the server authentication can be falsified, a port number restriction can easily be overcome by using a single-user operating system or by someone with administrative privileges on a multi-user operating system, and this protocol is not compatible with some firewall-proxy configurations..

To use this component:

  1. Set the TIdRSH.Host to the I.P. Address or name of the remote machine.

  2. Set the TIdRSH.ClientUserName to the user's local User ID

  3. Set the TIdRSH.HostUserName to the user's remote User ID

  4. Use the TIdRSH.Execute method with the command to run on the remote machine