c# SshClient RunCommand error

217 Views Asked by At

Through SshClient I can connect to the machine, but when I run the code:

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

                    var commandResult = client.RunCommand("obj <- Service$new()");

var commandResult2 = client.RunCommand("obj$setJsonData(" + json + ")");

                    var response = commandResult.Result;
                    client.Disconnect();
                }

I get this error: Payload cannot be more then 32768 bytes

How to set a larger size?

0

There are 0 best solutions below