私はパスフレーズを使用しないSSH鍵を持っています。 Dockerコンテナを構築するときに、そのキーを使用してプライベートgitリポジトリを取得したいとします。SSHでパスフレーズレス鍵のパスフレーズが必要なのはなぜですか?
ビルド時にコンテナにキーを取得することに成功しましたが、今度は/ dev/ttyを開いてキーのパスフレーズを尋ねることができないため、SSHが失敗します。上記のように、キーにはキーがありません。ここで
はあなたのキーファイルが何らかの方法で破損している可能性がありSSH出力の一部(-v)
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: key_load_private_type: incorrect passphrase supplied to decrypt private key
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: No more authentication methods to try.
Permission denied (publickey).
fatal: Could not read from remote repository.
注:SSH(一部のバージョン少なくとも)パスフレーズを、それがキーファイルの意味を理解することはできません任意の時間を促すメッセージが表示されますこのスレッド](http://stackoverflow.com/a/18079668/1979736) – K40S