note 106454 added to function.ssh2-auth-pubkey-file

From: Date: Thu, 10 Nov 2011 15:29:04 +0000
Subject: note 106454 added to function.ssh2-auth-pubkey-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-184374@lists.php.net to get a copy of this message
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? ---- Server IP: 69.147.83.197 Probable Submitter: 212.19.47.25 ---- Manual Page -- http://www.php.net/manual/en/function.ssh2-auth-pubkey-file.php Edit -- https://master.php.net/note/edit/106454 Del: integrated -- https://master.php.net/note/delete/106454/integrated Del: useless -- https://master.php.net/note/delete/106454/useless Del: bad code -- https://master.php.net/note/delete/106454/bad+code Del: spam -- https://master.php.net/note/delete/106454/spam Del: non-english -- https://master.php.net/note/delete/106454/non-english Del: in docs -- https://master.php.net/note/delete/106454/in+docs Del: other reasons-- https://master.php.net/note/delete/106454 Reject -- https://master.php.net/note/reject/106454 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184374) next »