Stopped working - WeOnlyDo Discussion board

Stopped working (wodSSH / wodSSH.NET)

by schenkp, Monday, March 22, 2010, 14:02 (3158 days ago)

Hi,
We have been using the following code in production for about 6 months with no issues. We recently updated our Debian lab clients from etch to lenny versions of Debian which broke the code somehow. Each time we go to authenticate we get the following error message Authentication with server failed , not sure how what to change on the SSH.NET code to help remedy the issue.

Thoughts?

WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();

System.Collections.IDictionary envVars = Environment.GetEnvironmentVariables();

string endVLC = killall -q vlc ;

String hostname_value = ;

private void data(string streamPath)
{
System.Collections.IDictionary envVars = Environment.GetEnvironmentVariables();

foreach (System.Collections.DictionaryEntry envVar in envVars)
{

if (envVar.Key.ToString() == ThinConnectedFrom )
{
hostname_value = envVar.Value.ToString();
}
}

WeOnlyDo.Client.SSH ssh1 = new WeOnlyDo.Client.SSH();
ssh1.Hostname = hostname_value;
ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
ssh1.Login = user ;
ssh1.Password = XXXX ;
ssh1.Blocking = true;
ssh1.Command = streamPath;

try
{
ssh1.LicenseKey = XXXX ;
ssh1.Connect();
String result = ssh1.Receive();
System.IO.File.WriteAllText( C:\Temp\ThinTV.txt , result);

}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}

}


Complete thread: