gpg-agent and ~/.ssh/config IdentityFile

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jul 5 23:23:55 CEST 2016


You're right, this really is a better question for OpenSSH users.

On Mon 2016-07-04 09:15:07 -0400, Muri Nicanor wrote:
> at the beginning of my ~/.ssh/config. when authenticating to a host i
> only want to use the one identity/key i've created for that host instead
> of sending all of them to the server...

Do you have a .pub file of the public part of your identity?  try
pointing Identities to that file.

if you don't have such a file, you should be able to do:

   ssh-add -L

filter the output to the line you want, save the filtered output to a
file named "foo.pub" and then try with "ssh -i foo.pub remotehost"

hth,

     --dkg



More information about the Gnupg-users mailing list