User: Password:
|
|
Subscribe / Log in / New account

configure ssh identity by host

configure ssh identity by host

Posted Oct 28, 2011 17:16 UTC (Fri) by dmarti (subscriber, #11625)
In reply to: KS2011: Kernel.org report by josh
Parent article: KS2011: Kernel.org report

You can always make a separate Host section in your .ssh/config with an IdentityFile line. Should then be used by everything that runs over ssh including git. (man ssh_config for more info)


(Log in to post comments)

configure ssh identity by host

Posted Oct 28, 2011 20:36 UTC (Fri) by nix (subscriber, #2304) [Link]

Does that work if you use an agent? Last time I tried, -i and IdentityFile were both ignored if an agent was in use.

configure ssh identity by host

Posted Oct 31, 2011 10:54 UTC (Mon) by mp (subscriber, #5615) [Link]

Even with IdentitiesOnly? Never tried it but looks like the option to set.

configure ssh identity by host

Posted Oct 31, 2011 17:50 UTC (Mon) by nix (subscriber, #2304) [Link]

I'm not sure that even existed in the fairly old version of OpenSSH I last encountered this problem in, five years ago. I should retest...


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds