Does/Can libssh2 automatically look for the users public/private keypair for auth?

Peter Stuge peter at stuge.se
Thu Jul 28 17:47:28 CEST 2022


Reid Thompson via libssh2-devel wrote:
> $ ssh host
> 
> and the keypair is automatically loaded and used.  Can/Does libssh2
> support this automated search for and use of keypairs?

No, libssh2 does not search for or parse OpenSSH or other third party
configuration.

You can implement it yourself if you want; find and parse config
file, then tell libssh2 which key to use.


//Peter


More information about the libssh2-devel mailing list