我正在使用Renci.SshNet.Sftp连接到SFTP。当我尝试拨打sftpClientObject.Connect()时出现以下错误。请在下面找到错误。几天前它工作正常。检查了验证细节,它是完美的。 var _sftpClient = new SftpClient(_hostName, _userName, _password);
using (_sftpClient)
{
_
在将应用程序变成更像背景任务的过程中,我注意到一些奇怪的行为。当我运行像这样(类似于旧代码,我修改)它工作正常: using (Foo f = new Foo(stuff)) {
f.doSomething();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefau
试图通过用户名和私钥仅使用当前的ssh.net库进行身份验证。我无法从用户那里获得密码,所以这是不可能的。 这是我现在正在做的事情。 Renci.SshNet.ConnectionInfo conn = new ConnectionInfo(hostName, port, username, new AuthenticationMethod[]
{
new Passwor