We are unable to get a local SFTP test working with public/private keys - the local SFTP server (Port) is running and works with a username and password, however when we add the private/public key it fails. (Please see attached).
How can we fix? Is it the format of the User Public Key path?
The Server Port also has these set:
Require Password Authentication [ON]
Require Public Key Authentication [ON]
We got this working by just using public-key authentication (which is want we wanted):
- Port: Only selected public key auth
- User: ensure the password AND public key auth is unchecked.
It seems the “two-factor authentication” checkbox may be needed in the folder management if you’re using both.
In addition to this, we received a “No supported authentication methods available” error, so we needed to use the one-line version of the public key - so rather than:
---- BEGIN SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
… we had to use: