-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All is it possible to select the presented key based on the hash? The Situation is following: Workstatation is running the Agent with some keys Need to use a jump host to connect to other hosts. best regards Patrick - -- Patrick Marc Preuss -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUL548AAoJEOtOgOL+nQWDTOoH/RAI4npcaqcY0RusB60kVQCS 8K5+octOqRK3WRnd0YbQ0pFaVeCZFGmfJ9TZJkqNsmHnzThrk33ibGYu6HomovzA yUnwyYzqgurCEl7wPpyXV/xDaDbY8U0b2AJwMtbB1pKUmZmUJ635F1KBsmbA3heK mdS9RAVDJjf00vAHCTmt3SUpfl7I+pAvlxiYuEMnIYhA80ChFfNrzo3oX0KyXg9W 5thpPMuDYPDvagp+BW4dpjPEKxmN2OLStS2Pkl0Vh0+A11OWRXRKTsLGOJs3ypKB vsI7KLZPzxGkIlnsNdNbAMk5Fy0WCjpXPWlFDY+W1urVKxleZ8hXgdCbifg91wo=Dy8+ -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: patrick_preuss.vcf Type: text/x-vcard Size: 197 bytes Desc: not available URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20141004/68fcf34a/attachment.vcf>
On Sat, 4 Oct 2014, Patrick Marc Preuss wrote:> Hi All > > is it possible to select the presented key based on the hash?I don't know what hash you are talking about.> The Situation is following: > > Workstatation is running the Agent with some keys > Need to use a jump host to connect to other hosts.You can use something like the following in your ~/.ssh/config Host foo IdentitiesOnly yes IdentityFile ~/.ssh/id_foo.pub Host bar IdentitiesOnly yes IdentityFile ~/.ssh/id_bar.pub ssh will use the specified key from the agent, even if it offers others. Unfortunately there is no way to select/filter keys when an agent is forwarded yet. It would be a nice feature though. -d