PowerTCP Emulation for .NET
Rsh Class
Members 




The Rsh component enables use of the remote shell protocol within any .NET application.
Object Model
Rsh ClassTcpSocketOption Class
Syntax
Public Class Rsh 
   Inherits TcpBase
Dim instance As Rsh
public class Rsh : TcpBase 
public __gc class Rsh : public TcpBase 
public ref class Rsh : public TcpBase 
Remarks

Use the Rsh component to execute a command on a remote host (typically a UNIX host). To use the Rsh component, call Connect to connect, call one of the Execute methods to execute the command, and then use one of the Read methods to read the results of the command.

Rexec and Rsh perform the same task using different authentication techniques. Rsh requires static information be added to .rhosts and/or hosts.equiv, whereas Rexec simply uses dynamic username/password information for authentication.

Using Rsh requires authorization for the local host running the application. To do this, add the appropriate entries to the hosts.equiv or .rhosts files located on the remote host. These files enable login from other machines and users. The hosts.equiv file is a system file containing names of remote hosts authorized to execute the remote protocol. If not authorized in this file, the remote host looks for the .rhosts file located in the user's account on the remote host. The .rhosts file contains lines of host names and login names paired together. Your local host with login name is authorized if found in this file.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         Dart.Emulation.ComponentBase
            Dart.Emulation.SocketBase
               Dart.Emulation.TcpBase
                  Dart.Emulation.Rsh

See Also

Reference

Rsh Members
Dart.Emulation Namespace


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic