โ07-07-2022 04:52 AM
Hi. Iโm trying to set up an SSH Auth account in order to connect to an SFTP server.
Iโve been given a .ppk file that was generated by PuttyGen and Iโve verified that I can connect to the SFTP server using an FTP app (WinSCP) by supplying the user name and this .ppk file (the pass phrase is blank).
However I canโt seem to generate a correct private key that works with the SSH Auth account in SnapLogic.
I opened the file with PuttyGen then selected the menu option ConversionโฆExport OpenSSH Key. It generated a file like:
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz
blah etc.
LTIwMTgwNTI5AQIDBAUGBwgJ
-----END OPENSSH PRIVATE KEY-----
I pasted this text into the โprivate keyโ field in the SSH Auth setup. However, when I use the account with a โMulti File Readerโ snap, I get the error:
Invalid private key
Resolution: Please ensure private key is in OpenSSH key file format.
Reason: Missing private key header/footer might be a possible reason
Can somebody please tell me what Iโm doing wrong?
Solved! Go to Solution.
โ07-27-2022 02:24 AM
So in my case, this error was caused because I was trying to use an Ed25519 key, which snap (apparently) doesnโt support. Once I created a new key pair in RSA format and registered the public key on the server, it worked.
โ07-21-2022 09:45 AM
Hi
Were you able to find a solution for this issue?
Iโd appreciate any comment.
Thank you
Angel Villalobos
โ07-25-2022 12:41 AM
Hi. No I didnโt. I think in my case itโs because my key (as I discovered) is in Ed25519 format, i.e. itโs not an RSA key, and you apparently canโt convert between the two formats. See my follow-up question here: Does Snaplogic support Ed25519 SSH keys?
To date yours is the only reply Iโve had, so Iโm still in the dark โน๏ธ
โ07-27-2022 02:24 AM
So in my case, this error was caused because I was trying to use an Ed25519 key, which snap (apparently) doesnโt support. Once I created a new key pair in RSA format and registered the public key on the server, it worked.
โ08-09-2023 12:34 PM
Hi, I found this PuttyGen documentation very helpful. Just in case anyone else runs across the same issue.