git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: ddw_music <jamshark70@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location
Date: Sun, 13 Jun 2010 05:38:06 -0700 (PDT)	[thread overview]
Message-ID: <m3eigbp0q5.fsf@localhost.localdomain> (raw)
In-Reply-To: <1276430179137-5174101.post@n2.nabble.com>

ddw_music <jamshark70@gmail.com> writes:
> Jakub Narebski wrote:
> > 
> > Why can't you use SSH for pushing instead of "dumb" HTTPS via WebDAV?
> > This would require having sshd (SSH daemon, i.e. SSH server) installed,
> > and perhaps Gitosis or Gitolite for access control (so one can use only
> > single shell account).
> > 
> 
> I'll consider that later on. For the moment -- I spent probably five or six
> hours today and fiddling around with the configuration, and I don't have
> time to look at any other tools (gitosis etc). (At least osx comes with
> "Remote Login" == sshd preinstalled.)

Gitosis / Gitolite would be needed only if there are many people that
you want to have SSH access to git repositories without giving them
all shell access...

> 
> While experimenting with git-daemon this morning, I did get the
> functionality that I need working by enabling receive-pack. Yes, I know
> that's a security risk, but I'm the only user, behind a hardware router (no
> exposed IP address) and I will have the daemon running only for a few
> minutes at a time when needed for sync.
> 
> I realize this isn't the "correct" or "optimal" configuration, but I know
> that it will work for the moment and, as stated, I simply won't have any
> further time for experimentation for the next few weeks.

...but in your situation it would be anough to have on server (i.e. on
computer you want to push to) to have sshd and git installed, and have
sshd enabled (turned on) and git available in your $PATH on server.

Then

  git push <user>@<host>:/path/to/repo.git <branch>

should work (or you can configure remote).

-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2010-06-13 12:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-13  0:48 (osx 10.4.11) can't push from linux to Apache on mac: can't access location ddw_music
2010-06-13  5:23 ` Tay Ray Chuan
2010-06-13  6:35   ` ddw_music
2010-06-13  7:20     ` Tay Ray Chuan
2010-06-13 10:28       ` ddw_music
2010-06-13 10:44         ` Jakub Narebski
2010-06-13 11:56           ` ddw_music
2010-06-13 12:38             ` Jakub Narebski [this message]
2010-06-17 22:26   ` mobi phil

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=m3eigbp0q5.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jamshark70@gmail.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).