portnov / libssh2-hs

LibSSH2 FFI bindings for Haskell
http://hackage.haskell.org/package/libssh2
26 stars 31 forks source link

Allow SSH/SFTP without a public key #56

Open ldub opened 4 years ago

ldub commented 4 years ago

If you pass in a null pointer for the public_key, libssh2 itself will generate a public key from the private key:

https://github.com/libssh2/libssh2/blob/482055695011fabb55f3cb7598356d47a0429068/src/userauth.c#L1520-L1530

It would be extremely handy to allow this in libssh2-hs.

Would you consider implementing this or accepting a PR if I did it?

portnov commented 4 years ago

Hello. Yes, a PR would be welcome.