SSH to Password Manager Pro

Hi,
I am trying to create an integrated SSH connection to Password Manager Pro (PMP) to retrieve passwords for my app. I thought the SSHBlackBox would do it, however I am having trouble.
I can connect and authenticate fine to the server, however when sending a command the SSH client appears to error out before receiving the response. The PMP SSH server is set to process the command, send a response, and then immediately disconnect. The disconnection seems to cause an error before the response is handled.
The process does work in Putty client and with plink.exe.

I have tried with both the Simple SSHClient sample app and the sophisticated SSH Client sample app (ElSimpleSSHClient and SSHClient).
I have tried using .Command and .Commands before calling .Open. I have also tried .SendText() and .SendData. I have tried client.ReceiveData() and client.ReceiveText(), both synchronous and asynchronous.

The error usually comes back to "Wrong socket state 0 in CanReceive (error code is 96258)"

If I just call .ReceiveData / .ReceiveText without checking CanReceive I get no data returned. The client then returns .Active=false.

I am running SecureBlackbox - version 8.1.192 - Released December 10, 2010, for .NET. I am running the trial while I await the arrival of a licence.

Is there a way I can have it process the response before handling the close?

A trial of PMP can be downloaded from (http://www.manageengine.com/products/passwordmanagerpro/download.html) if you want to test it out.

1) Could you please check if higher level TElSimpleSSHClient.ExecuteCommand() method does the job for you?

2) If it doesn't, could you please paste the entire PLINK command line as you are invoking it (please replace all the sensitive information, such as host names, user names or passwords, with dummy strings).

The reason of the problem is that PMP server closes connection right after a command execution and TElSimpleSSHClient fails to read data from a closed socket. We are working on a fix that will allow to handle this situation.

Note that the server can close connection at any moment and your code should be aware of this.

As for Command/Commands property - the server doesn't follow the standard - it doesn't notify about SSH channel being opened and instead reports just command execution success. All of this happens within Open() method.

This is the first time we encounter this problem and, what is worse, there's no easy way to solve it. So if you can go with SendData/SendText and the above code snippet, we'll better leave it as is.

Thanks, I'm looking forward to it.
In the mean time I have had to resort to spawning a process and executing the plink command and capturing the stdout - which makes me feel dirty!
I'll be putting the 'proper' solution in place when you guys have your workaround done!