Database Management

Task Factory - SFTP - Could not open private key file - Error was ""

This is a How-to Article that explains the possible causes of the TF SFTP connection manager giving an error stack 'Could not open private key file'.

First published date

1/5/2022 6:21 PM

Last published date

2/11/2025 8:30 PM

Overview

There are many different causes, but the resolution will list a few things that need to be verified to address the 'Could not open private key file.' Error was "".

Product section

SQL Sentry (SQLS)

Cause

In many scenarios, the version of Task Factory needs to be compatible with the appropriate version of the key file and may need to be upgraded and/or downgraded to match it.

Resolution

Steps to troubleshooting TF Sftp connection manager for the error stack Could not open private key file:
  • Verify another 3rd part application can connect, such as Filezilla, WinSCP, etc.
  • Check folder permissions of the key file.
  • Check the version of the key file. In many scenarios, the version of Task Factory needs to be compatible with the appropriate version of the key file and may need to be upgraded and/or downgraded to match it. For example, any verbiage in a key file that indicates something like Argon2 indicates that a key file is on a version that is incompatible and needs to be downgraded.

image.png