Assets Discovery: Using SFTP_RSA Export type requirements
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When setting up the Discovery Tool or the Discovery Collector with the Export Type: SFTP_RSA, you may encounter an error:
"Export type is not available" when saving the configuration.
And when Discovery / Collector is running, while attempting to transfer the file:
22-Jul-2022 14:27:36 : Using PrivateKeyAuthenticationMethod with user yinon and keyfile C:/Users/Disco/privateSSHkey.ppk.22-Jul-2022 14:27:36 : Failed to connect durring to: Wrong passphrase.
When testing and using an SFTP Client (e.g. WinSCP) you can access the export path successfully with the same Key.
Environment
Discovery 3.1.2 and earlier
Solution
The Discovery SFTP_RSA export type does not work with .ppk files.
If no passphrase is already available, you will need to convert the RSA Key into OpenSSH key format and add one.
You may create the Key using the ssh-keygen command, please use the following:
ssh-keygen -t rsa -m PEM
If RSA and PEM are not explicitly specified here, you will still get the Passphrase error showing.