Error parsing SSH private key: asn1: structure error: tags don't match
yujunz opened this issue · 2 comments
yujunz commented
Got an error when running imagebuilder
F1213 14:43:51.082659 87321 main.go:211] error parsing SSH private key: asn1: structure error: tags don't match (16 vs {class:2 tag:15 length:124 isCompound:false}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
jsleeio commented
@yujunz apologies for the delay here, what algorithm and key length were you using?
I vaguely recall some troubles with RSA keys >2048 bits...
yujunz commented
RSA 4096 or 2048 in macOS perhaps.
At last I generated a key pair under Linux and it works.