I am working on a project where one of the users needs to connect to an FTP using a PUTTY key. The project uses Chilkat to handle SFTP connections and we have a copy of the .ppk file to make the connection. We have confirmed that with the .ppk file and user name provided we can connect to the server using Filezilla.
Using the provided key file with Chilkat though and calling either the FromOpentSshPrivateKey() or FromPuttyPrivateKey methods the same result is returned where the method returns false and the PrivateKey.LastErrorText shows the error message just reporting as "Invalid Putty Private Key (2)". I have done a few searches for this error and it seems all the questions relating to these keys failing are 6+ years old and the exact error message is typically not the same as the one I am seeing.
I have tried updating the version of Chilkat we are using to the most recent version and the error remains unchanged. Is there a way I can get more detail about what the issue may be, because verbose logging only seems to include the actual key value and algorithm used along with the error. Not sure if it will be easier to spend time trying to resolve the issue with chilkat or use the time finding alternatives to chilkat which may connect successfully.
We do not have problems with users that are connecting to SFTPs using OpenSSH, but this is the first user that has attempted to use Putty.