I try to connect with raspberry pi by ssh, but unfortunately i have this error message. I try to use try-catch like in this topic,Renci.SshNet : "server response does not contain ssh protocol identification" But it not help. When i try to connect with this device by ssh.client on linux, everythink work, so IP and port are well. I work on Visual studio and i use Xamarin.forms.
My code:
using (var client = new SshClient("11.15.16.385", 24, "root", "password"))
{
client.Connect();
client.RunCommand("reboot");
client.Disconnect();
}
Results in:
Error in client.connect():
Renci.SshNet.Common.SshConnectionException: 'Server response does not
contain SSH protocol identification.'