Subject: Why does libssh2_userauth_publickey_fromfile_ex() require a public key?

Why does libssh2_userauth_publickey_fromfile_ex() require a public key?

From: Casper Langemeijer <casper_at_langemeijer.eu>
Date: Thu, 14 Jun 2012 22:28:07 +0200

Hi All,

A PHP user writes:

"Every other ssh client I've ever dealt with, only requires the private
key to authenticate to a remote server with ssh2.

What is the reason for requiring both the public and private keys for
authenticating, when in reality only the private key is required? The
public key should be easily extracted from private key, and should be
handled silently by PHP."

I think he raises an interesting point. What can you say on the subject?

For reference: https://bugs.php.net/bug.php?id=59409

Greetings, Casper

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-06-19