0

I created three gpg subkeys stored on my YubiKey as described here. I added enable-ssh-support and enable-putty-support to my gpg-agent.conf file. Everything works when accessing a server with the ssh-key generated by gpg --export-ssh-key <my-key-for-authentication> stored in its authorized_keys via Putty. I get a Pin entry displayed and get access to the server.

When using Windows terminal ssh user@host though, I get a path-top-my-ssh-key: invalid format error and the connection is refused. The right key is loaded, as confirmed by running ssh user@host -vvv.

Can anyone help me understand how to get Windows to use the same "setup" as Putty? And why doesn't this work in the first place? I would appreciate an explanation with any solution.

1
  • Keys are just (large) numbers. But there are several different file formats for storing these keys on disk. PuTTY format and OpenSSH format are different. PuTTY comes with a "key generator" tool that, in addition to generating new keys, can open and save PuTTY-format key files and import and export OpenSSH-format key files, enabling conversion in both directions.
    – Ben Voigt
    Commented Jun 19 at 17:25

0

You must log in to answer this question.