Re: git + ssh + key authentication feature-request

From: Junio C Hamano <junkio@cox.net>
Date: 2006-02-09 10:55:34
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
        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.


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Feb 09 10:56:57 2006

This archive was generated by hypermail 2.1.8 : 2006-02-09 10:57:08 EST