LoginSignup
16
16

More than 5 years have passed since last update.

Capistranoでの配備時に`Could not parse PKey: no start line`エラーが発生した時の対処法

Posted at

capコマンドを実行した時に以下のようなエラーが発生することがある。

ArgumentError: Could not parse PKey: no start line

パスフレーズ付きの秘密鍵を使おうとしていて、かつそれに対応する公開鍵が存在していないことが原因のよう。

以下のコマンドを実行して、対応する公開鍵を出力すればいいとのこと。

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub

参考:
net-ssh 2.6.0 issues · Issue #286 · capistrano/capistrano

16
16
1

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
16
16