note 106454 rejected from function.ssh2-auth-pubkey-file by tularis
| From: | tularis@php.net | Date: | Fri, 11 Nov 2011 16:29:27 +0000 |
| Subject: | note 106454 rejected from function.ssh2-auth-pubkey-file by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184389@lists.php.net to get a copy of this message | ||
Note Submitter: sj_yo at yahoo dot de
----
Hi,
just hope that someone may help me :)
tried:
if (ssh2_auth_hostbased_file($connection, 'myuser', 'myserver.com',
'c:/inetpub/bin/dsa2048_xxx_public_production',
'c:/inetpub/bin/dsa2048_xxx_private_production.ppk',
'mypass')) {
echo "Public Key Authentication Successful\n";
} else {
echo "Public Key Authentication Failed";
}
if (ssh2_auth_pubkey_file($connection, 'myuser',
'c:/inetpub/bin/dsa2048_xxx_public_production',
'c:/inetpub/bin/dsa2048_xxx_private_production.ppk',
'mypass')) {
echo "Public Key Authentication Successful\n";
} else {
echo "Public Key Authentication Failed";
}
But everytime get Authentication failed.
Connection with psftp works fine, confusing is that he wants the PRIVATE key only for
authentication, in php both are requested ...
Can somebody give me some hint in this case?