【问题标题】:Erlang ssh connection error: Unable to connect using the available authentication methodsErlang ssh 连接错误:无法使用可用的身份验证方法进行连接
【发布时间】:2016-06-15 17:20:56
【问题描述】:

在 Elixir 中进行 ssh 连接时,出现此错误:

:ssh.shell('host address', port_number, user: 'user_name')

{:error, 'Unable to connect using the available authentication methods'}

【问题讨论】:

    标签: erlang elixir


    【解决方案1】:

    答案在@svarlet 在this question 上留下的评论中。

    如果您的 ssh 密钥有密码,您需要在 Erlang ssh 连接命令的选项中指定它。

    :ssh.shell('host address', port_number, user: 'user_name', rsa_pass_phrase: 'ssh_key_passphrase')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-05
      • 1970-01-01
      • 1970-01-01
      • 2015-05-01
      • 2013-12-29
      • 2018-01-25
      • 1970-01-01
      相关资源
      最近更新 更多