【问题标题】:Algorithm negotiation fail error when using SharpSSH使用 SharpSSH 时算法协商失败错误
【发布时间】:2014-10-31 12:09:18
【问题描述】:

问题: 当我尝试通过 sharpssh 连接时捕获此错误算法协商失败

我用密码生成公钥和 ssh-2 RSA 私钥。然后导出到OpenSSHH并用它来连接

我试过连接:

if (input.IdentityFile != null) sshCp.AddIdentityFile(input.IdentityFile, "123456");

谢谢

【问题讨论】:

    标签: sharpssh


    【解决方案1】:

    “AddIdentityFile”方法需要一个指向您的私钥文件的路径字符串。试试:

    if (input.IdentityFile != null)
        sshCp.AddIdentityFile("path", "123456");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-14
      • 2014-02-26
      • 2018-04-14
      • 2017-02-12
      • 2015-04-21
      相关资源
      最近更新 更多