LoginSignup
1
0

More than 3 years have passed since last update.

protodep で「ssh: cannot decode encrypted private keys」エラーが出た時の解消法

Posted at

protodepとは

Protocol Buffer IDL管理のためのツール。

インストール

まずgoがインストールされていない場合はインストール

brew install go

protodepのインストール

go get github.com/stormcat24/protodep

他のサービスに依存している場合は、protodep.toml に依存を追加し、以下のコマンドを実行してIDLを取得します。

protodep up

protodep up でエラーが出る場合


$ protodep up
[INFO] force update = false
[INFO] cleanup cache = false
[INFO] identity file = id_rsa
[INFO] use SSH protocol
Error: ssh: cannot decode encrypted private keys
Usage:
  protodep up [flags]

Flags:
  -c, --cleanup                cleanup cache before exec.
  -f, --force                  update locked file and .proto vendors
  -h, --help                   help for up
  -i, --identity-file string   set the identity file for SSH (default "id_rsa")
  -p, --password string        set the password for SSH

ssh: cannot decode encrypted private keys

Macでssh keyにpassphraseを設定している場合、実行できません。
現在password optionも正常に動作していないようです。


cp ~/.ssh/id_rsa ~/.ssh/id_rsa_np
ssh-keygen -f ~/.ssh/id_rsa_np -p
# Passphraseに何も入力しない

protodep up -i id_rsa_np

で実行することができます。

1
0
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
1
0