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

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

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') 


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