That library will not work either. See https://github.com/fudanchii/edssh/blob/bd7d88fd1d85351bf598cdcd1fb7b04528cf42e2/keys.go#L44
> On Nov 19, 2017, at 11:49 AM, Nurahmadie Nurahmadie <nurahma...@gmail.com> > wrote: > > Hi Chandru, > > I made a library to support openssh ed25519 key format. > It can be used as a drop-in replacement of `ssh.ParsePrivateKey` as shown > here: https://github.com/fudanchii/edssh <https://github.com/fudanchii/edssh> > > On Thu, Nov 16, 2017 at 11:43 PM, me via golang-nuts > <golang-nuts@googlegroups.com <mailto:golang-nuts@googlegroups.com>> wrote: > x/crypto/ssh does support OpenSSH's ed25519 private key files. > > However, it looks like it does not support encrypted private keys in the > OpenSSH format. > > See > https://github.com/golang/crypto/blob/9f005a07e0d31d45e6656d241bb5c0f2efd4bc94/ssh/keys.go#L922 > > <https://github.com/golang/crypto/blob/9f005a07e0d31d45e6656d241bb5c0f2efd4bc94/ssh/keys.go#L922> > and https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key > <https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key> > > On Wednesday, November 15, 2017 at 12:09:29 PM UTC-5, Chandra Sekar S wrote: > Can x/crypto/ssh parse OpenSSH's ed25519 private key files? > > ParseRawPrivateKeyWithPassphrase returns "ssh: cannot decode encrypted > private keys" as error. > > -- > Chandra Sekar.S > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > -- > regards, > Nurahmadie > -- -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.