どうすれば良いか
Gemfileに次を追加してbundle install
gem 'bcrypt', '~> 3.1.7'
gem 'ed25519'
gem 'bcrypt_pbkdf'
至った経緯
- capistrano使っててed25519でAgentForwardできない
- net-ssh 5.x移行で使える
- Gemfile.lock/bundle exec gem list確認するとnet-ssh 5.10になっている
- config/deploy/staging.rb の ssh_optionsにverbose: :debugを追記してログ確認
E, [2019-01-25T15:09:40.146918 #667] ERROR -- net.ssh.authentication.agent[3ffff3118fcc]: ignoring unimplemented key:unsupported key type `ssh-ed25519'
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
- Gemfileを次の様に変更して動作確認
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
~省略~
group :development do
# Use Capistrano for deployment
gem "capistrano", "~> 3.11", require: false
gem 'capistrano-rails'
gem 'ed25519'
gem 'bcrypt_pbkdf'
end