Joyent gives decode error on SSH key with passphrase
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Using a standard key generated with ssh-keygen[1], trying to bootstrap joyent gives the following error is the SSH key has a passphrase:
[review]
uploading tools for series [trusty precise]
Bootstrap failed, destroying environment
ERROR Bootstrap failed, and the environment could not be destroyed: cannot retrieve instances: failed to get list of machines
caused by: An error occurred while parsing the key: asn1: structure error: tags don't match (16 vs {class:1 tag:16 length:38 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
ERROR cannot make Manta control container: failed to create directory: 812f3d5b43414f0
caused by: An error occurred while parsing the key: asn1: structure error: tags don't match (16 vs {class:1 tag:16 length:38 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
[review]
1.17.8-trusty-amd64
[review]
/home/bac/
[review]
/home/bac/
Ensuring the key was added to the ssh-agent yielded the same result.
Removing the passphase from the key and trying again was successful.
Juju's documentation for the Joyent provider should note this restriction. juju-core could examine the SSH private key to determine if it is encrypted and provide a better error message that points to the proper user action.
[1] ssh-keygen -b 2048 -t rsa
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: joyent-provider shh |
tags: |
added: ssh removed: shh |
Changed in juju-core: | |
importance: | High → Low |
Changed in juju-core: | |
status: | Triaged → Won't Fix |