c#SshClient运行命令错误

c#SshClient运行命令错误,c#,bash,runcommand,C#,Bash,Runcommand,通过SshClient,我可以连接到机器,但当我运行代码时: using (var client = new SshClient(_server, _user, _password)) { client.Connect(); var commandResult = client.RunCommand("obj <- Service$new()"); 我得到这个错误: 有效负载

通过SshClient,我可以连接到机器,但当我运行代码时:

using (var client = new SshClient(_server, _user, _password))
                {
                    client.Connect();

                    var commandResult = client.RunCommand("obj <- Service$new()");
我得到这个错误: 有效负载不能超过32768字节


如何设置更大的尺寸?

您正在连接什么?这不是一个看起来很酷的命令。。你认为我的问题已经改变了,命令能做些什么。运行时:Client.RunCommand(“obj$setJsonData(“+json+”)”);哪个应该开始处理,我得到这个错误:有效负载不能超过32768字节如何设置更大的大小?
                    var response = commandResult.Result;
                    client.Disconnect();
                }