The Maverick.NET SSH API

ForwardingClient Constructor 

Create a forwarding client using given SSH connection.

[Visual Basic]
Public Sub New( _
   ByVal ssh As SSHClient _
)
[C#]
public ForwardingClient(
   SSHClient ssh
);

Parameters

ssh
An initialized SSHClient instance.

Remarks

When creating a forwarding client you must provide a connected and authenticated SSHClient. Forwarding features are supported by both versions of the SSH protocol however you may need to pay attention to the order in which forwardings and sessions are started if you want to create code that is valid for both SSH1 and SSH2. The general rules are as follows:

1. Create the forwarding client before any calls to OpenSessionChannel
2. Once the forwarding client has been created configure X11 is required.
3. Open a single SSHSession channel. This is because SSH1 will not allow remote configurations to be set until the connection is in interactive mode.
4. Configure the local and remote forwardings you require.
5. Start the users shell on the session channel opened in step 3.

Exceptions

Exception Type Condition
SSHException  

See Also

ForwardingClient Class | Maverick.Forwarding Namespace