Skip to main content
Solved

Fail to connect SFTP SSH to FLEX : "Permission denied (publickey)" when using OpenSSH key pair

  • May 19, 2025
  • 1 reply
  • 49 views

Hi everyone,

I'm currently trying to connect a FLEX synchronization scenario to a secure SFTP server. The SFTP server has been configured to use OpenSSH public/private key authentication.

I followed the official documentation carefully: 

https://help.acumatica.com/(W(14))/Wiki/ShowWiki.aspx?pageid=d9555f46-0a48-4059-8082-decc6b8e3652

 

However, when I try to establish the connection, I get the following error message:

Permission denied (publickey)

 

FYI : The SFTP user does not have a password (only key-based access) but FLEX seems to hash the password even when the password field is left empty, which might be causing the authentication to fail.

Best answer by DasunPerera91

Hi,

This might be due server not supporting SSH2 public key. A server that supports this will need to be used.

How to configure SSH authentication key for SFTP file synchronization | Community

1 reply

DasunPerera91
Acumatica Employee
Forum|alt.badge.img
  • Acumatica Employee
  • Answer
  • April 27, 2026

Hi,

This might be due server not supporting SSH2 public key. A server that supports this will need to be used.

How to configure SSH authentication key for SFTP file synchronization | Community