From: Junio C Hamano <gitster@pobox.com>
To: oliverw <oliver@weichhold.com>
Cc: git@vger.kernel.org
Subject: Re: GIT over ssh with identity file
Date: Wed, 04 Feb 2009 00:41:10 -0800 [thread overview]
Message-ID: <7vbpti1tnd.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <21826348.post@talk.nabble.com> (oliver@weichhold.com's message of "Wed, 4 Feb 2009 00:37:18 -0800 (PST)")
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
next prev parent reply other threads:[~2009-02-04 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 8:37 GIT over ssh with identity file oliverw
2009-02-04 8:41 ` Junio C Hamano [this message]
2009-02-04 8:50 ` Matthieu Moy
2009-02-04 9:25 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vbpti1tnd.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=oliver@weichhold.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).