Re: Request a password only if needed - WeOnlyDo Discussion board

Re: Request a password only if needed (General questions)

by Marian, Thursday, April 29, 2010, 22:37 (5320 days ago) @ woddrazen

Hi Drazen,
Thanks for your reply.

The code I have is this:
[code] SSH client = new SSH();
client.ConnectedEvent += new SSH.ConnectedDelegate(client_ConnectedEvent);
client.CryptoInformationEvent += new SSH.CryptoInformationDelegate(client_CryptoInformationEvent);
client.DataReceivedEvent += new SSH.DataReceivedDelegate(client_DataReceivedEvent);
client.FingerPrintEvent += new SSH.FingerPrintDelegate(client_FingerPrintEvent);
client.LoginChallengeEvent += new SSH.LoginChallengeDelegate(client_LoginChallengeEvent);
client.Protocol = SSH.SupportedProtocols.SSHAuto;
client.Authentication = SSH.Authentications.KeyboardInteractive;
client.Connect( 10.100.100.1 );
[/code]

The client_FingerPrintEvent gets fired first, and then client_CryptoInformationEvent and finally client_ConnectedEvent with an error: Server returned the error: Invalid password!

Meaning the LoginChallenge is never called.
The server is actually a Cisco 7200, with ssh enabled (RSA)


Complete thread: