The Maverick.NET SSH API

ForwardingClient.CancelRemoteForwarding Method (String, Boolean)

Cancels a remote forwarding listener.

[Visual Basic]
Overloads Public Function CancelRemoteForwarding( _
   ByVal key As String, _
   ByVal killActiveTunnels As Boolean _
) As Boolean
[C#]
public bool CancelRemoteForwarding(
   string key,
   bool killActiveTunnels
);

Parameters

key
A remote forwarding key returned by RemoteForwardings
killActiveTunnels
Set to true if you want all the active tunnels to be dropped as well

Return Value

A value of true if the server reported that the forwarding was cancelled.

Remarks

Calling this method sends a request to the server to cancel a remote forwarding listener. The request may be denied. In the case of an SSH1 connection all requests to cancel will be denied as the protocol does not support the feature.

See Also

ForwardingClient Class | Maverick.Forwarding Namespace | ForwardingClient.CancelRemoteForwarding Overload List