forwarded 473841 https://bugs.g10code.com/gnupg/issue901 thanks
The DSA key errors appear to be because gpgkey2ssh uses the wrong label for DSA keys. It should be using "ssh-dss" instead of "ssh-dsa". The following patch fixes both types of key output for me. Regards, --dkg --- gnupg2-2.0.9.orig/tools/gpgkey2ssh.c 2007-09-10 11:33:28.000000000 -0400 +++ gnupg2-2.0.9/tools/gpgkey2ssh.c 2008-04-09 01:32:47.000000000 -0400 @@ -272,11 +272,11 @@ { identifier = "ssh-rsa"; ret = key_to_blob (&blob, &blob_n, identifier, - &pkdbuf[0], &pkdbuf[1], NULL); + &pkdbuf[1], &pkdbuf[0], NULL); } else if (algorithm_id == 17) { - identifier = "ssh-dsa"; + identifier = "ssh-dss"; ret = key_to_blob (&blob, &blob_n, identifier, &pkdbuf[0], &pkdbuf[1], &pkdbuf[2], &pkdbuf[3], NULL); }
pgpni4P9xEBoM.pgp
Description: PGP signature