This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

task factory sftp - could not connect to the server using private key authentication

Using task factory 2020.18.1 with visual studio 2019, any target server version, but will be deployed to a sql 2016 server.

When trying to set up an sftp connection using authentication by key file, the test connection button shows the error

"Could not connect to the server using private key authentication. Error was ''"


The connection type is SSH FTP. If I switch to "SSH FTP LEGACY" the error is:

"The negotiation of key exchange method has failed".


The format of the key file originally provided to us by the host was putty. Using this putty file works in winSCP.

Using puttyGen I have converted the key file to both old format and new format alternatives (file header "-----BEGIN RSA PRIVATE KEY-----" or "-----BEGIN OPENSSH PRIVATE KEY-----").

The converted file is successfully used by openSSH to make a connnection.

No version of the key file works with task factory. I understand it can't use the putty format (the error is different, it says it cannot open the file). But it also doesn't work with the converted file, in either format.

As you can see above, the detailed error message is an empty string, which is unhelpful.

Any ideas? Cheers.

Parents
  • I could guess it is a TLS issue or a PPK Version issue. TF only supports PPK v2 formats. Additionally, you'd want to try a newer version of TF that supports newer versions of TLS. And make sure you can connect to the SFTP host with another application like FileZilla.

  • Do you happen to know if there is any official document listing the types of private key task factory accepts? I have two almost identical processes for sftp, the only difference being one uses a password AND key and the other uses only a KEYfile. The key file only option doesn't work, however the key and password option seems to work without issue. THanks

  • There is no official documentation. I had to open a Support case. They told me the version 2 is supported. I had to use Putty or the like to change the PPK version. They gave me a "we are working on supporting ppk 3 in future versions".

Reply
  • There is no official documentation. I had to open a Support case. They told me the version 2 is supported. I had to use Putty or the like to change the PPK version. They gave me a "we are working on supporting ppk 3 in future versions".

Children
No Data