Re: Hoping for a working example of SFTP in PHP

From: Date: Mon, 01 Feb 2021 20:06:40 +0000
Subject: Re: Hoping for a working example of SFTP in PHP
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-327435@lists.php.net to get a copy of this message
Dear Stefan A., My key type has always been RSA, generated using these instructions. I found the actual pub file and downloaded it. Note that the first line in this file is ssh-rsa not -----BEGIN RSA PRIVATE KEY----- I am getting the same error message: "Starting... ssh2_connect: Resource id #4 Warning: ssh2_auth_pubkey_file(): Authentication failed for nsr using public key: Unable to open public key file in C:\Dropbox\Private\Web\nsr-HMAC\upload\upload.php on line 43 Public Key Authentication Failed" I can understand why security files have many different formats: because of random historical development. But isn't it time to standardize on one format of security files for all platforms? Is there a Standards group that could make this happen? Meanwhile, is there an expert who can help me get this working? David

« previous php.general (#327435) next »