【发布时间】:2015-12-03 01:47:43
【问题描述】:
我正在尝试使用 SSH.NET 在 C# 中通过 SSH 连接到 Azure Linux vm。
using (var client = new SshClient("my-vm.cloudapp.net", 22, "username", "password"))
{
client.Connect();
Console.WriteLine("it worked!");
client.Disconnect();
Console.ReadLine();
}
但是,我收到以下异常:
No suitable authentication method found to complete authentication
我可以通过 ssh 在 git bash 和 Putty 中使用这些凭据,有什么问题?
【问题讨论】: