cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Setting up SSH account

snapuser
New Contributor II

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?

1 ACCEPTED SOLUTION

snapuser
New Contributor II

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.

View solution in original post

4 REPLIES 4

Angel_Villalobo
New Contributor II

Hi

Were you able to find a solution for this issue?
Iโ€™d appreciate any comment.

Thank you
Angel Villalobos

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 โ˜น๏ธ

snapuser
New Contributor II

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.

marenas
New Contributor III

Hi, I found this PuttyGen documentation very helpful. Just in case anyone else runs across the same issue.