2

I'm following the steps for How to connect PGAdmin4 to DB through SSH tunnel with Public key authentication.

I point it to the identity file I generated through OpenSSH (has no extension) but whenever I hit save it says "No password or public key available!"

Any idea how to solve?

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 23 '22 at 17:44

1 Answers1

3

Ok I found the answer: Need to convert the SSH private key to a RSA private key using

ssh-keygen -p -N "" -m pem -f /path/to/key

Source

  • I used puttyGen to do this as per https://stackoverflow.com/a/72264414/244811 but, this worked for me. Interesting that my key was named "id_rsa" but was actually in SSH -----BEGIN OPENSSH PRIVATE KEY----- format. – Scott Weaver Jul 16 '22 at 21:47