One more suggestion - if it turns out this approach is not sufficient, it might be possible to use the low-level client-side SshSession API instead, which makes it possible to work directly with SSH channels in a stream-like manner. There are not many samples for this low-level API, but if you decide to give this a try, we can provide some sample code.