The Maverick.NET SSH API

ForwardingClient.AllowX11Forwarding Method (String, FileInfo)

Configures the forwarding client to request X forwarding for session channel requests.

[Visual Basic]
Overloads Public Sub AllowX11Forwarding( _
   ByVal display As String, _
   ByVal xAuthority As FileInfo _
)
[C#]
public void AllowX11Forwarding(
   string display,
   FileInfo xAuthority
);

Parameters

display
The display for all x forwarding requests e.g "localhost:0"
xAuthority
The path to an .xAuthority file which may contain a cookie for the X server

Remarks

This method looks into the xAuthority file to find a valid MIT-MAGIC_COOKIE-1 value for the display. If a suitable cookie is not found the client will attempt to use a fake cookie.

Exceptions

Exception Type Condition
FileNotFoundException If the .xAuthority file cannot be found

See Also

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