Hi,
I made an application that sends and receive via ssh against a suse sles 11 linux server. Everything worked ok until i upgrade my visual studio from 2010 express to 2010 professional. Is seems like it is the ssh.RunCommand that have stopped. Here is the codebit that have stopped:
```
private void send_command(string Command)
{
// Clear date and time variables before next choice
Month= "";
Day = "";
Hour = "";
Minute = "";
var connectionInfo = new KeyboardInteractiveConnectionInfo(host, port, username);
connectionInfo.AuthenticationPrompt += delegate(object sshsender, AuthenticationPromptEventArgs ee)
{
foreach (var prompt in ee.Prompts)
{
if (prompt.Request.Equals("Password: ", StringComparison.InvariantCultureIgnoreCase))
{
prompt.Response = pass;
}
}
};
using (var ssh = new SshClient(connectionInfo))
{
ssh.Connect();
var cmd = ssh.RunCommand(Command);
tbOutput.AppendText(cmd.Result.Replace("\n", "\r\n"));
}
}
```
Please advice.
Comments: ** Comment from web user: drieseng **
I made an application that sends and receive via ssh against a suse sles 11 linux server. Everything worked ok until i upgrade my visual studio from 2010 express to 2010 professional. Is seems like it is the ssh.RunCommand that have stopped. Here is the codebit that have stopped:
```
private void send_command(string Command)
{
// Clear date and time variables before next choice
Month= "";
Day = "";
Hour = "";
Minute = "";
var connectionInfo = new KeyboardInteractiveConnectionInfo(host, port, username);
connectionInfo.AuthenticationPrompt += delegate(object sshsender, AuthenticationPromptEventArgs ee)
{
foreach (var prompt in ee.Prompts)
{
if (prompt.Request.Equals("Password: ", StringComparison.InvariantCultureIgnoreCase))
{
prompt.Response = pass;
}
}
};
using (var ssh = new SshClient(connectionInfo))
{
ssh.Connect();
var cmd = ssh.RunCommand(Command);
tbOutput.AppendText(cmd.Result.Replace("\n", "\r\n"));
}
}
```
Please advice.
Comments: ** Comment from web user: drieseng **
Are you still using the same version of SSH.NET ?
What's the result you get now ? Is any exception thrown ?