Re: git + ssh + key authentication feature-request
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 8, 2006, 23:55 UTC
- Message-ID
- <7vzml1mmmh.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <43EA8DDA.3070906@iaglans.de>
Nicolas Vilz 'niv' <niv@iaglans.de> writes:
> So, how do i tell git to send my identity-file to sshd? And could I > set an alias like in .git/remotes for that location / identity?
That is not a git question but you are using me as an ssh helpdesk. See ssh_config(5).
The answers are:
IdentityFile
UserFor example, I have this in my .ssh/config on my local machine:
Host osiris.pyramid.com
User junio
IdentityFile ~/.ssh/osiris-pub
ForwardAgent no
ForwardX11 noWithout "User", it would send out "junkio", so I have that line to override it (I could do it with -l command line, but there is no point because that is I would use _always_ to go there). Without "IdentityFile" it would use ~/.ssh/identity (same rationale with -i), which is the identity file I usually use for other sites.