c#的winform应用,远程调用unix下的命令和脚本,并返回结果解决办法

c#的winform应用,远程调用unix下的命令和脚本,并返回结果
如题,使用了SharpSSH和Granados,都不知道如何返回结果,而且有些命令可以运行,有的命令无法运行,很奇怪,不知道有没有什么好的方法可以解决,哪怕比较底层的做法
------解决方案--------------------
SharpSSH发送命令和接受返回信息不是这样的吗?
参考sharpSsh - A Secure Shell (SSH) library for .NET(英文)

//Writing to the SSH channel
ssh.Write( command );

//Reading from the SSH channel
string response = ssh.ReadResponse();

Granados接收返回信息在Reader的OnData事件里
开源Granados介绍 - SSH连接远程Linux服务器(C#)

public void OnData(byte[] data, int offset, int length)

------解决方案--------------------
飘过。。头像很考究。