C# SSH.NET CreateCommand/RunCommand does not work

Viewed 2503

I would like to create an application to send SSH commands to HP Switches and some other devices. But from HP Switch I get response "SSH command execution is not supported.".

I use this part of a code.

SshClient sshclient = new SshClient(IP,username, pass);
sshclient.Connect();
SshCommand sc = sshclient.CreateCommand("conf");
sc.Execute();
string answer = sc.Result;
label9.Text = answer;

Any ideas how to make the interactive shell emulation? I found only this thread regarding to this issue. phpseclib - attempting to connect to an HP procurve switch returns error: SSH command execution is not supported

1 Answers
Related