Azure Data Factory SFTP Service error: SftpAuthenticationFailure

Apurva Pathak 920 Reputation points
2026-07-06T11:47:31.9+00:00

I'm using ADF Linked Service for SFTP connection to get data from an on-premises server.

We're running SHIR on containers, and keys/passphrases are passed by key vault.

Meet authentication failure when connect to Sftp server '' using 'SshPublicKey' authentication type. Please make sure you are using the correct authentication type and the credential is valid. For more details, see our troubleshooting docs.
Permission denied (publickey).

However, the weird part is that, if I import the same key to the SHIR container instance, and try an SFTP connection, it works fine.

Also, it was working all fine for months, and suddenly broke without any sensible reason.

Can anyone please help me go around this issue.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.