ssh2.cr
ssh2.cr copied to clipboard
Unrecognized private key file
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,
in fact, I use ssh-keygen from OpenSSH instead of generating private key from https://github.com/libssh2/libssh2