* GIT over ssh with identity file
@ 2009-02-04 8:37 oliverw
2009-02-04 8:41 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: oliverw @ 2009-02-04 8:37 UTC (permalink / raw)
To: git
Forgive me if this has been answered before. I've searched everywhere but
couldn't find a solution.
Is it somehow possible to pass your private key file to git when working
over ssh. What I have in mind would be something like this:
git -i /path/to/private/key clone ssh://homer@foo.bar.com/var/git/repos.git
Since I want to use this on a server I would like to avoid using a password
caching agent at all cost.
--
View this message in context: http://www.nabble.com/GIT-over-ssh-with-identity-file-tp21826348p21826348.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT over ssh with identity file
2009-02-04 8:37 GIT over ssh with identity file oliverw
@ 2009-02-04 8:41 ` Junio C Hamano
2009-02-04 8:50 ` Matthieu Moy
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2009-02-04 8:41 UTC (permalink / raw)
To: oliverw; +Cc: git
oliverw <oliver@weichhold.com> writes:
> Forgive me if this has been answered before. I've searched everywhere but
> couldn't find a solution.
>
> Is it somehow possible to pass your private key file to git when working
> over ssh. What I have in mind would be something like this:
>
> git -i /path/to/private/key clone ssh://homer@foo.bar.com/var/git/repos.git
I think the standard way people use for things like this is something
along the lines of...
$ cat >>$HOME/.ssh/config <<\EOF
Host homer-at-foo
Hostname foo.bar.com
User homer
IdentityFile ~/.ssh/homer-at-foo.pub
EOF
$ git clone homer-at-foo:/var/git/repos.git
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT over ssh with identity file
2009-02-04 8:41 ` Junio C Hamano
@ 2009-02-04 8:50 ` Matthieu Moy
2009-02-04 9:25 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Moy @ 2009-02-04 8:50 UTC (permalink / raw)
To: Junio C Hamano; +Cc: oliverw, git
Junio C Hamano <gitster@pobox.com> writes:
> $ cat >>$HOME/.ssh/config <<\EOF
> Host homer-at-foo
> Hostname foo.bar.com
> User homer
> IdentityFile ~/.ssh/homer-at-foo.pub
(I think you have an extra .pub here, the identity file should be the
private key).
--
Matthieu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT over ssh with identity file
2009-02-04 8:50 ` Matthieu Moy
@ 2009-02-04 9:25 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2009-02-04 9:25 UTC (permalink / raw)
To: Matthieu Moy; +Cc: oliverw, git
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> $ cat >>$HOME/.ssh/config <<\EOF
>> Host homer-at-foo
>> Hostname foo.bar.com
>> User homer
>> IdentityFile ~/.ssh/homer-at-foo.pub
>
> (I think you have an extra .pub here, the identity file should be the
> private key).
Yeah, you are right. I am too tired and should have gone to bed 90
minutes ago.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-04 9:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04 8:37 GIT over ssh with identity file oliverw
2009-02-04 8:41 ` Junio C Hamano
2009-02-04 8:50 ` Matthieu Moy
2009-02-04 9:25 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).