From: Junio C Hamano Date: Wed, 08 Feb 2006 23:55:34 GMT Subject: Re: git + ssh + key authentication feature-request Message-ID: <7vzml1mmmh.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <43EA8DDA.3070906@iaglans.de> Nicolas Vilz 'niv' 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 User For 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 no Without "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.