Erlang ssh连接错误:无法使用可用的身份验证方法进行连接 [英] Erlang ssh connection error: Unable to connect using the available authentication methods
本文介绍了Erlang ssh连接错误:无法使用可用的身份验证方法进行连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
:ssh.shell('host address', port_number,user:'user_name')
{:错误,'无法使用可用的身份验证方法进行连接'}
解决方案
答案是在@svarlet留下的评论这个问题。
如果您的ssh密钥具有密码短语,则需要在Erlang ssh connect命令的选项中指定。
:ssh.shell('host address',port_number,user:'user_name',rsa_pass_phrase:'ssh_key_passphrase')
/ pre>
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'}
解决方案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')
这篇关于Erlang ssh连接错误:无法使用可用的身份验证方法进行连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文