OpenPGP Smartcard and SSH ?!

Werner Koch wk at gnupg.org
Tue Apr 24 12:48:26 CEST 2007


On Mon, 23 Apr 2007 22:12, matthias.barmeier at sourcepark.de said:

> My old ssh keys works fine with gpg-agent but how do I add the key on
> the card ?

There is no need to add a key from a card.  Just insert the card into
the reader and gpg-agents knows about it.

A mere ssh-add -l will list the card's key.  To retrieve the public key
of the card, use ssh-add -L.


$ ssh-add -l
1024 f1:63:41:8b:b2:77:e5:fe:0b:29:17:8a:4a:c2:c4:de cardno:000100000347 (RSA)
1024 4f:e1:04:1f:3f:97:8e:54:6b:21:7f:d6:8a:72:22:71 /home/wk/.ssh/id_dsa (DSA)

This lists my card's key as well as an on-disk key.  ssh will try all
listed keys in turn untill it succeeds.



Salam-Shalom,

   Werner





More information about the Gnupg-users mailing list