【发布时间】: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'}
【问题讨论】:
在 Elixir 中进行 ssh 连接时,出现此错误:
:ssh.shell('host address', port_number, user: 'user_name')
{:error, 'Unable to connect using the available authentication methods'}
【问题讨论】:
答案在@svarlet 在this question 上留下的评论中。
如果您的 ssh 密钥有密码,您需要在 Erlang ssh 连接命令的选项中指定它。
:ssh.shell('host address', port_number, user: 'user_name', rsa_pass_phrase: 'ssh_key_passphrase')
【讨论】: