Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Unrecognized private key file #23

Open
waghanza opened this issue Oct 11, 2018 · 1 comment
Open

Unrecognized private key file #23

waghanza opened this issue Oct 11, 2018 · 1 comment

Comments

@waghanza
Copy link

Hi @datanoise,

Using

  • Crystal 0.26.1
  • LLVM 4
  • OpenSSH 7.8p1
  • OpenSSL 1.1.0i

I have this message

Unhandled exception: ERR -16: Unable to extract public key from private key file: Wrong passphrase or invalid/unrecognized private key file format (SSH2::SessionError)
  from ???
  from /usr/share/crystal/src/gc/boehm.cr:71:5 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:47:14 in 'main'
  from __libc_start_main
  from _start
  from ???

when using session.login_with_pubkey

but it works (same code) with

  • Crystal 0.26.1
  • LLVM 4
  • OpenSSH 7.5p1
  • OpenSSL 1.1.0h

Regards,

@waghanza
Copy link
Author

in fact, I use ssh-keygen from OpenSSH instead of generating private key from https://github.com/libssh2/libssh2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant