美文网首页
Capistrano 报错 `raiseUnlessLoaded

Capistrano 报错 `raiseUnlessLoaded

作者: 河码匠 | 来源:发表于2022-03-16 09:23 被阅读0次

Capistrano 部署时报如下错误

#<Thread:0x00000001218c27c0@/Library/Ruby/Gems/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
/Library/Ruby/Gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/ed25519_loader.rb:21:in `raiseUnlessLoaded': OpenSSH keys only supported if ED25519 is available (NotImplementedError)
net-ssh requires the following gems for ed25519 support:
 * ed25519 (>= 1.2, < 2.0)
 * bcrypt_pbkdf (>= 1.0, < 2.0)
See https://github.com/net-ssh/net-ssh/issues/565 for more information
Gem::MissingSpecError : "Could not find 'ed25519' (~> 1.2) among 55 total gem(s)
Checked in 'GEM_PATH=/Users/machao/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information"

解决办法

# 在执行 cap 的机器执行下面命令
ssh-add

相关文章

网友评论

      本文标题:Capistrano 报错 `raiseUnlessLoaded

      本文链接:https://www.haomeiwen.com/subject/gtzudrtx.html