Erlang ssh connection error: Unable to connect using the available authentication methods

孤者浪人 提交于 2019-12-13 08:11:02

问题


When doing an ssh connection in Elixir, I got this error:

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

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

回答1:


The answer was in a comment left by @svarlet on this question.

If your ssh key has a pass-phrase, you need to specify it in the options to the Erlang ssh connect command.

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


来源:https://stackoverflow.com/questions/37831250/erlang-ssh-connection-error-unable-to-connect-using-the-available-authenticatio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!