Indy 9
|
TIdRSH = class(TIdRemoteCMDClient)
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:
property ClientUserName: String;
property HostUserName: String;
property Port: integer;
property UseReservedPorts: Boolean;
constructor Create(AOwner: TComponent); override;
function Execute(ACommand: String): String; override;
If an error occurred, TIdRemoteCMD.ErrorReply is set to true and the TIdRemoteCMD.ErrorMessage contains the message returned from the RSH Deamon. The inherited TIdRemoteCMDClient.UseStdError property effects how error messages are sent from the RSH Deamon.