I had the same situation recently, everything worked with a SFTP client or SFTP 
from the command line. I could not get it to work using curl and --key options 
(curl 7.64.0 (x86_64-apple-darwin18.2.0) libcurl/7.64.0 SecureTransport 
zlib/1.2.11 libssh2/1.8.0). I finally just gave up and switched to using the 
built in SFTP on the Mac.


> * SSH public key authentication failed: Invalid key data, not base64 encoded
> * Failure connecting to agent
> * Authentication failure
> * Closing connection 0
> curl: (67) Authentication failure
> 
> 
> I've obfuscated some of the details, but you get the idea.
> 
> The main problem seems to be that CURL thinks the Public Key should be
> Base64 encoded.  I'm pretty sure that it is.  It looks like this;

You might also look at the private key. I think the error line above is telling 
you generally "public key authentication" failed, and is not specifically 
referring to your SSH_Public.key file. You probably need to convert the ppk 
file for OpenSSH somehow.


John DeSoi, Ph.D.


> On Nov 21, 2019, at 2:44 PM, Peter Hay via 4D_Tech <[email protected]> 
> wrote:
> 
> As I said, FileZilla works fine with all of this.
> 
> Does anyone have any idea what the issue may be?

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to