You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After opening a SshClient Connection (calling CreateShell) there is no way to call SendWindowChangeRequest because _channel (IChannelSession) is an internal field and not accessible.
The solution appears to be surfacing the SendWindowChangeRequest in the ShellStream class. I note other requests like ChangeFlow etc. would remain inaccessible though.
The alternative is to surface the IChannelSession interface and make it a read only property to get references to all the underlying methods. But that is 2 levels of abstraction more primitive than the client - so implementing a method "WindowChangeRequest" thats calls the IChannelSession.SendWindowChangeRequest method is most obvious, but that would suggest implementing a wrapper to all the other methods: SendPseudoTerminalRequest, SendX11ForwardingRequest - ie practically the whole IChannel Interface.
So I recommend surfacing the IChannelSession as a read only property.
The text was updated successfully, but these errors were encountered:
It turns out IChannelSession is defined as internal. So back to the other solution.
I do see that Client.ConnectionInfo.SupportedRequests can return the supported Requests.
After opening a SshClient Connection (calling CreateShell) there is no way to call SendWindowChangeRequest because _channel (IChannelSession) is an internal field and not accessible.
The solution appears to be surfacing the SendWindowChangeRequest in the ShellStream class. I note other requests like ChangeFlow etc. would remain inaccessible though.
The alternative is to surface the IChannelSession interface and make it a read only property to get references to all the underlying methods. But that is 2 levels of abstraction more primitive than the client - so implementing a method "WindowChangeRequest" thats calls the IChannelSession.SendWindowChangeRequest method is most obvious, but that would suggest implementing a wrapper to all the other methods: SendPseudoTerminalRequest, SendX11ForwardingRequest - ie practically the whole IChannel Interface.
So I recommend surfacing the IChannelSession as a read only property.
The text was updated successfully, but these errors were encountered: