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.