[Nix-dev] fetchgit with ssh
Corey O'Connor
coreyoconnor at gmail.com
Mon Jan 13 19:45:15 CET 2014
Previously I've had success accessing private git repos via ssh using:
1. a ssh:// URL. EG: ssh://git@git.corp.ooyala.com/qa/tools/jenkins-ci.git
2. Patching fetchgit to pass the GIT_SSH env variable and configuring
GIT_SSH to propagate the keys as expected.
Part #2 is much like Azlig implemented.
Cheers,
Corey
-Corey O'Connor
coreyoconnor at gmail.com
http://corebotllc.com/
On Mon, Jan 13, 2014 at 7:22 AM, Sönke Hahn <SoenkeHahn at gmail.com> wrote:
> Yes, that helps, thanks! It's actually not github, we are using bitbucket
> for internal repos, but bitbucket seems to have similar possibilities:
>
> https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket
>
> I'm going to look into this tomorrow.
>
> Cheers,
> Sönke
>
>
> aszlig wrote:
>
> > On Mon, Jan 13, 2014 at 01:40:55PM +0800, S??nke Hahn wrote:
> >> I also tried out https-urls. The problem is that not all repos that I
> >> need to access are public. So I have to provide some authentication. For
> >> ssh I can just put keys in .ssh, but for https in this setting, I'm not
> >> sure if it's even possible.
> >
> > If it's GitHub-specific and you want to have access to private
> > repositories, please have a look at this:
> >
> >
> https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth
> >
> > We're using this internally for deployment and the following is the
> > quite ugly approach we were using before GH introduced OAuth for HTTPS
> > URLs:
> >
> > https://gist.github.com/aszlig/8397726
> >
> > Hope this helps.
> >
> > a!
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140113/74857c79/attachment.html
More information about the nix-dev
mailing list