Using gpg for ssh access

Arthur Ulfeldt arthur at
Thu Mar 17 08:47:37 CET 2016

When setting this up I missed the step of explicitly enabling ssh agent
mode in gpg agent so it would listen for connections from ssh (and pretend
to be the ssh agent) then I had to set the environment variable for the ssh
socket to the gpg agent socket. After a short while this grew tedious and I
installed envoy (arch Linux) to manage the gpg agent though there are many
other equally good ways of doing this.

Not having the agent working was really frustrating to figure out why it
would not use the key, so perhaps this could be something worth checking,
if only to double check that you are connecting to the correct agent.
Den 16. mar. 2016 11.34 PM skrev "CANNON NATHANIEL CIOTA" <
cannon at>:

> Hash: SHA512
> Trying to figure out how to use GPG for accessing servers via ssh. I have
> a key with an authentication sub-key, and used gpgkey2ssh to convert that
> subkey to an ssh key then saved the output in .ssh/authorized_keys file.
> Still unable to connect. I suspect I am missing a step or doing something
> wrong. I am unable to find any up to date or working guide on how to
> accomplish this. Can someone inform the correct procedure for using gpg to
> access ssh? (Please do not mention 'monkeysphere', that is not an option).
> Thanks
> Cannon
> iQIcBAEBCgAGBQJW6k1AAAoJEAYDai9lH2mwi28P/0sGgHA8JWFOfacun8eI/5Nu
> wE0dIfFkauW1fkjC4dmYMkHO48Vl4hKekybw2+U2WEjS18+jZx9TMAsTodNKR65L
> ckCehPdzHB+yC+m3peLlKEIKSSpjgACTAN2PLuSdp6VQihTs9JbRUSuzlV+tE7Sf
> JSg2iye9XNE1jfEHTFl06dh7Kwclyhbd64iG0n5yQKsqRbIq51z3MFMNizJPAQWW
> 6HTMBz8YDK9IIhvrR13hPBp5mc6ArvRxemTpmqTOZbADRlyPXajqhnHM3tc3nTC6
> BxqJc17bFLjU/fl507FNypQCTF1+0P2Hkl7nGueCqN24QqCMAjPTfSuWqqKizuZA
> DfInKvj2AE5Le9ymgg22zhffcPk4tECscXkVtjBhTmVYHcUR1rM44MbC2qHoxpv8
> rdRLSQy0EJyQ85RIWNSmZp1DCYqoq5gZVhIgFg8fqeN0Wolvmm4bet/EU3NAmm+q
> zx+A1fqHCyWbTMlETextOEZEa5/2pPUIF/C5qWiJgH//LZH38k8Q1OID5xM2aBRZ
> UKZd97b+X+/mcnCeVpOK
> =4LAy
> --
> Cannon N. Ciota
> Digital Identity (namecoin): id/cannon
> Website:
> Email: cannon at
> PGP Fingerprint: E7FB 0605 1BD4 8B88 B7BC 91A4 7DF7 76C7 25A6 AEE2
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160317/30afcb4d/attachment.html>

More information about the Gnupg-users mailing list