|
Hi Oleg,
I am trying to connect to a server running SUSE Linux using the following code :
[c# .Net3.5 code]
serverConnection = new SshClient(serverName, userName, password);
serverConnection.Connect();
I am getting the following error message :
"No suitable authentication method found to complete authentication. at Renci.SshNet.ConnectionInfo.Authenticate(Session session) at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.Connect()"
When I change the connection method to "KeyboardInteractiveConnectionInfo", per your suggestion I am able to connect to the SUSE Linux server successfully. But this connection method does not work in case of server running Windows or RHEL.
Please note that "SsshClient" method works well for servers running Windows2k8-R2 and RHEL (that is all I have tested so far).
My problem is that I have a collection of Windows2k8-R2,Windows2k3, RHEL, SUSE etc servers that I need to talk to. While the user enters the server name, I need to SSH to the server and collect some information. I wouldn't know the OS type when the user
inputs the server name or IP. So it would be better if I can have one connection method that I can use for all types of servers.
Do you have any suggestions?
Hi Girishivarathri,
Were you able to connect to a server running RHEL or Windows using "KeyboardInteractiveConnectionInfo" ?
Thanks,
Subbu
|