10
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

いつのまにかcapistrano(net-ssh)でed25519が使えるように

Posted at

どうすれば良いか

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 

参考URL等

10
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?