Page MenuHome GnuPG
Feed Advanced Search

Jan 8 2016

aheinecke added a comment to T2212: Wish for a gpgkey2ssh replacement.

Current master b2da3951 segfaults on me.
Btw. I think this is likely because i have a local ID without an Authentication
subkey for aheinecke@gnupg.org

(gdb) run --export-ssh-key aheinecke@gnupg.org
Starting program: /opt/gnupg/bin/gpg2 --export-ssh-key aheinecke@gnupg.org
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: enabled debug flags: memstat

Program received signal SIGSEGV, Segmentation fault.
lookup (ctx=ctx@entry=0x6dd940, ret_keyblock=ret_keyblock@entry=0x0,
ret_found_key=ret_found_key@entry=0x7fffffffd998,

want_secret=<optimized out>) at ../../g10/getkey.c:3116

3116 *ret_keyblock = keyblock; /* Return the keyblock. */
(gdb) bt full
#0 lookup (ctx=ctx@entry=0x6dd940, ret_keyblock=ret_keyblock@entry=0x0,
ret_found_key=ret_found_key@entry=0x7fffffffd998,

want_secret=<optimized out>) at ../../g10/getkey.c:3116
    rc = 0
    no_suitable_key = 0
    keyblock = 0x0
    found_key = 0x701980

#1 0x0000000000415bb6 in getkey_next (ctx=0x6dd940, pk=0x0, ret_keyblock=0x0)
at ../../g10/getkey.c:1636

rc = <optimized out>
found_key = 0x0

#2 0x000000000045713a in export_ssh_key (ctrl=0x6dd810, userid=0x7fffffffe420
"aheinecke@gnupg.org") at ../../g10/export.c:1437

getkeyctx = 0x6dd940
keyblock = 0x6fd160
desc = {mode = KEYDB_SEARCH_MODE_SUBSTR, skipfnc = 0x0, skipfncvalue =

0x0, sn = 0x0, snlen = 0, u = {

name = 0x7fffffffe420 "aheinecke@gnupg.org", fpr = "

\344\377\377\377\177", '\000' <repeats 17 times>, kid = {

4294960160, 32767}, grip = " \344\377\377\377\177", '\000'

<repeats 13 times>}, exact = 0}

curtime = 1452288169
pk = 0x0
identifier = 0x6ddb80 ""
mb = {len = 0, size = 4096, buf = 0x6e5d70 "", out_of_core = 0}
fp = 0x6dd810
b64_state = {flags = 7199040, idx = 0, quad_count = -153676256, fp =

0x10, stream = 0x6dd800, title = 0x6ddb80 "",

radbuf = "\000\000\000", crc = 0, stop_seen = -1, invalid_encoding =

0, lasterr = 0}

fname = 0x7fffffffe420 "aheinecke@gnupg.org"

#3 0x000000000040dc00 in main (argc=1, argv=0x7fffffffdfe8) at ../../g10/gpg.c:4193

pargs = {argc = 0x7fffffffdb9c, argv = 0x7fffffffdb90, flags = 32769,

err = 0, r_opt = 0, r_type = 0, r = {ret_int = 0,

ret_long = 0, ret_ulong = 0, ret_str = 0x0}, internal = {idx = 2,

inarg = 0, stopped = 1,

last = 0x7fffffffe420 "aheinecke@gnupg.org", aliases = 0x0,

cur_alias = 0x0, iio_list = 0x0}}

a = 0x6dd800
orig_argc = 0
orig_argv = 0x6ddb80
fname = 0x7fffffffe420 "aheinecke@gnupg.org"
sl = 0x0
remusr = 0x6ddb40
locusr = 0x0
nrings = 0x0
afx = 0x7fffffffe420
configfp = 0x7fffffffe420
configlineno = 27
parse_debug = 7198720
cmd = aExportSshKey
malloc_hooks = {malloc = 0x405ee0 <gcry_malloc@plt>, realloc = 0x406d40

<gcry_realloc@plt>, free = 0x406290 <gcry_free@plt>}

ctrl = 0x6dd810
Jan 8 2016, 10:27 PM · ssh, gnupg, gnupg (gpg21), Feature Request
werner added a project to T2212: Wish for a gpgkey2ssh replacement: In Progress.
Jan 8 2016, 5:29 PM · ssh, gnupg, gnupg (gpg21), Feature Request
werner added a comment to T2212: Wish for a gpgkey2ssh replacement.

Done with commit 4970868 to be released with 2.1.11.
This uses a new command and not an export option so that export options can be
kept in the conf file.

ECDSA keys (NIST keys) do not yet work.

Jan 8 2016, 5:29 PM · ssh, gnupg, gnupg (gpg21), Feature Request
werner claimed T2212: Wish for a gpgkey2ssh replacement.
Jan 8 2016, 2:05 PM · ssh, gnupg, gnupg (gpg21), Feature Request

Jan 7 2016

werner added a comment to T2212: Wish for a gpgkey2ssh replacement.

Right, this is what I actually had in mind. Using the "<keyid>!" notaion it
would also be possible to export any primary of subkey in ssh format.

Jan 7 2016, 3:43 PM · ssh, gnupg, gnupg (gpg21), Feature Request
werner raised the priority of T2212: Wish for a gpgkey2ssh replacement from Wishlist to Normal.
Jan 7 2016, 3:43 PM · ssh, gnupg, gnupg (gpg21), Feature Request
aheinecke added projects to T2212: Wish for a gpgkey2ssh replacement: Feature Request, gnupg (gpg21), gnupg, ssh.
Jan 7 2016, 2:42 PM · ssh, gnupg, gnupg (gpg21), Feature Request
aheinecke updated subscribers of T2212: Wish for a gpgkey2ssh replacement.
Jan 7 2016, 2:42 PM · ssh, gnupg, gnupg (gpg21), Feature Request

Dec 18 2015

werner added a comment to T2106: Support SHA-256 fingerprints for ssh.

That fingerprint looks more like gibberish than something which should be
compared by the user. In that regard a SHA-1 fingerprint looks much more
serious and IMHO will be more secure than a base-64 fingerprint where you have
to explain that the users also need to match the case - if they are at all able
to compare that fingerprint.

We should take this to the mailing list.

Dec 18 2015, 5:20 PM · gnupg (gpg22), gnupg, ssh, Feature Request

Dec 16 2015

gniibe added a comment to T2106: Support SHA-256 fingerprints for ssh.

It is base64 trimmed the last '='.

Introducing new specifier, say %f, would be good, while keeping %F as is.
%f includes the hash algorithm string as SSH does.

Dec 16 2015, 2:45 AM · gnupg (gpg22), gnupg, ssh, Feature Request

Dec 14 2015

justus added a comment to T2106: Support SHA-256 fingerprints for ssh.

It seems to be base64:

% ssh -V
OpenSSH_7.1p1 Debian-3, OpenSSL 1.0.2e 3 Dec 2015
% ssh-keygen -l -f .ssh/known_hosts -F playfair.gnupg.org -E md5 -q
playfair.gnupg.org RSA MD5:cc:dd:46:8e:ef:3d:d9:34:97:f8:b8:5a:59:51:80:4a
% ssh-keygen -l -f .ssh/known_hosts -F playfair.gnupg.org -E sha256 -q
playfair.gnupg.org RSA SHA256:KCh034SD0rMKqCkJbdH2wx354s1278tqt9F+xb5cidg

Dec 14 2015, 11:56 AM · gnupg (gpg22), gnupg, ssh, Feature Request

Dec 9 2015

werner added a comment to T2106: Support SHA-256 fingerprints for ssh.

6.7 still shows MD5 fingerprints thus switching won't be easy. Does the SHA-256
fingerprint use Base32? If that is the case it might be a serious UX problem
because most people are used to look for colon separated hex digits.

Dec 9 2015, 3:11 PM · gnupg (gpg22), gnupg, ssh, Feature Request

Dec 4 2015

justus added a comment to T2106: Support SHA-256 fingerprints for ssh.

I generalized the ssh key fingerprinting code so that we can select the digest algorithm.

Now I'm a little unsure how to proceed. We can easily include both the MD5 and the SHA256 digest
in the sshcontrol file. But what shall we use for expanding '%F' in key descriptions? If we
transition too soon or too late, users might not recognize their key. Displaying both surely is
too verbose. We could make it configurable, or at least a compile time option.

What do you think?

Dec 4 2015, 3:49 PM · gnupg (gpg22), gnupg, ssh, Feature Request

Dec 3 2015

justus claimed T2106: Support SHA-256 fingerprints for ssh.
Dec 3 2015, 5:19 PM · gnupg (gpg22), gnupg, ssh, Feature Request

Oct 28 2015

werner closed T2075: gpg-agent comments in sshcontrol for do not match ssh as Resolved.
Oct 28 2015, 5:26 PM · Bug Report, ssh, gnupg
werner removed a project from T2075: gpg-agent comments in sshcontrol for do not match ssh: Restricted Project.
Oct 28 2015, 5:26 PM · Bug Report, ssh, gnupg

Oct 20 2015

iprok closed T2111: ssh-agent support broken as Resolved.
Oct 20 2015, 4:30 PM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
iprok changed Version from 2.1.9 to 2.1.8 on T2111: ssh-agent support broken.
Oct 20 2015, 4:30 PM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
iprok added a comment to T2111: ssh-agent support broken.

Removing and readding key helped. Thanks. Seems to be solved in 2.1.9

Oct 20 2015, 4:30 PM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
gniibe added a comment to T2111: ssh-agent support broken.

Please remove your private key(s) of ed25519 and register it again.

Please see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798956#24

Oct 20 2015, 12:42 PM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
iprok changed Version from 2.1.8 to 2.1.9 on T2111: ssh-agent support broken.
Oct 20 2015, 11:31 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
iprok added a comment to T2111: ssh-agent support broken.

The same issue in 2.1.9

Oct 20 2015, 11:31 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
iprok renamed T2111: ssh-agent support broken from ssh-agent support broken in 2.1.8 to ssh-agent support broken.
Oct 20 2015, 11:31 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate

Sep 28 2015

gniibe added a comment to T2111: ssh-agent support broken.

For no pinentry pop-up, I think that this is same cause described in the Issue 2112.
Please try the patch in T2112

Sep 28 2015, 10:35 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
gniibe claimed T2111: ssh-agent support broken.
Sep 28 2015, 10:35 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate

Sep 24 2015

iprok added a comment to T2111: ssh-agent support broken.

I use several key of near all types: ed25519, rsa, dsa, ecdsa. All of them have
stopped working.

Sep 24 2015, 10:15 PM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate
werner added a project to T2111: ssh-agent support broken: ssh.
Sep 24 2015, 10:42 AM · Debian, Bug Report, gnupg, ssh, gnupg (gpg21), Duplicate

Sep 22 2015

werner removed a project from T2075: gpg-agent comments in sshcontrol for do not match ssh: backport.
Sep 22 2015, 9:41 AM · Bug Report, ssh, gnupg
werner added a project to T2075: gpg-agent comments in sshcontrol for do not match ssh: Restricted Project.
Sep 22 2015, 9:40 AM · Bug Report, ssh, gnupg
werner added a comment to T2075: gpg-agent comments in sshcontrol for do not match ssh.

See T2106 for the SHA-256 feature.

Sep 22 2015, 9:40 AM · Bug Report, ssh, gnupg
werner renamed T2106: Support SHA-256 fingerprints for ssh from Support SHA-256 fingerrpitns for ssh to Support SHA-256 fingerprints for ssh.
Sep 22 2015, 9:40 AM · gnupg (gpg22), gnupg, ssh, Feature Request
werner added projects to T2106: Support SHA-256 fingerprints for ssh: Feature Request, ssh, gnupg.
Sep 22 2015, 9:39 AM · gnupg (gpg22), gnupg, ssh, Feature Request
werner added a comment to T2075: gpg-agent comments in sshcontrol for do not match ssh.

I have not yet used that new ssh version. Will look into it soon to get the MD5
fingerprints replaced.

The MD5 bug has been fixed with commit 2167951:

  • gcry_md_write (md, "384\0\0\0\x08nistp521", 15);

+ gcry_md_write (md, "384\0\0\0\x08nistp384", 15);

Sep 22 2015, 9:33 AM · Bug Report, ssh, gnupg
werner added a project to T2075: gpg-agent comments in sshcontrol for do not match ssh: backport.
Sep 22 2015, 9:33 AM · Bug Report, ssh, gnupg

Sep 14 2015

dkg added a comment to T2075: gpg-agent comments in sshcontrol for do not match ssh.

With recent versions of OpenSSH, the default fingerprint shown is uses SHA256.
The fingerprints emitted in sshcontrol are MD5. You can get ssh-keygen -l to
produce comparable MD5 fingerprints with "-E md5".

Perhaps the generated sshcontrol should also include the base64-encoded SHA256
fingerprints as well, though?

That still doesn't explain why ecdsa 384 keys are mis-fingerprinted, though.

Sep 14 2015, 4:27 PM · Bug Report, ssh, gnupg
dkg added a comment to T2075: gpg-agent comments in sshcontrol for do not match ssh.

This is still a problem with 2.1.8

Sep 14 2015, 4:23 PM · Bug Report, ssh, gnupg
dkg changed Version from 2.1.7 to 2.1.8 on T2075: gpg-agent comments in sshcontrol for do not match ssh.
Sep 14 2015, 4:23 PM · Bug Report, ssh, gnupg

Aug 20 2015

werner added a project to T2075: gpg-agent comments in sshcontrol for do not match ssh: ssh.
Aug 20 2015, 2:47 PM · Bug Report, ssh, gnupg

Jul 1 2013

werner closed T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation as Resolved.
Jul 1 2013, 9:03 PM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)
werner added a comment to T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation.

I just backported the new ssh-agent code from master to the 2.0 branch. Thus
2.0.21 will have this support.

Jul 1 2013, 9:03 PM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)

Apr 18 2012

werner added a project to T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation: gnupg.
Apr 18 2012, 12:06 PM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)

Apr 10 2012

bluescreen303 added a comment to T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation.

Would be great to have included if 2.1 is the ecc release.

I would love to just have 1 agent for everything.

Apr 10 2012, 9:26 PM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)
werner added a comment to T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation.

There is no ECC support for the agent, yet. The ssh protocol is different from
the OpenPGP Protocol. It should be easy to add support, though.

Apr 10 2012, 8:04 PM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)

Apr 8 2012

bluescreen303 added projects to T1401: ecdsa ssh keys and gpg-agent's ssh-agent emulation: gnupg (gpg20), Feature Request, gpgagent, ssh.
Apr 8 2012, 9:16 AM · ssh, gpgagent, Feature Request, gnupg, gnupg (gpg20)

Nov 6 2006

werner removed a project from T710: 2048 but DSA key for ssh: Info Needed.
Nov 6 2006, 1:35 PM · ssh, Bug Report, gnupg, gpgagent
werner closed T710: 2048 but DSA key for ssh as Resolved.
Nov 6 2006, 1:35 PM · ssh, Bug Report, gnupg, gpgagent
werner added a comment to T710: 2048 but DSA key for ssh.

Can't duplicate this problem.

Nov 6 2006, 1:35 PM · ssh, Bug Report, gnupg, gpgagent

Oct 12 2006

werner added a project to T710: 2048 but DSA key for ssh: Info Needed.
Oct 12 2006, 5:37 PM · ssh, Bug Report, gnupg, gpgagent
werner added a comment to T710: 2048 but DSA key for ssh.

Sorry, I can't replicate this using gnupg 1.9.92.
If you are still able to replicate it please create a test key and decribe
exacly what I have to do.

Oct 12 2006, 5:37 PM · ssh, Bug Report, gnupg, gpgagent

Oct 10 2006

werner renamed T710: 2048 but DSA key for ssh from 2048 but DSA key for sssh to 2048 but DSA key for ssh.
Oct 10 2006, 4:20 PM · ssh, Bug Report, gnupg, gpgagent
werner added projects to T710: 2048 but DSA key for ssh: gpgagent, gnupg, Bug Report, ssh.
Oct 10 2006, 4:20 PM · ssh, Bug Report, gnupg, gpgagent

Aug 29 2006

werner added a comment to T657: gpg-agent fails when adding a RSA ssh key.

This was due to an out of secure memory condition.
To solve this I have increased the secure memmory poool to 32k, add better error
reporting as well as a simple check to detect keys greater that 4k.

Aug 29 2006, 2:36 PM · ssh, Bug Report, gnupg
werner closed T657: gpg-agent fails when adding a RSA ssh key as Resolved.
Aug 29 2006, 2:36 PM · ssh, Bug Report, gnupg

Jul 31 2006

werner added a project to T657: gpg-agent fails when adding a RSA ssh key: ssh.
Jul 31 2006, 1:12 PM · ssh, Bug Report, gnupg