git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: (osx 10.4.11) can't push from linux to Apache on mac: can't access location

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 13, 2010, 12:38 UTC
Message-ID
<m3eigbp0q5.fsf@localhost.localdomain>
In-Reply-To
<1276430179137-5174101.post@n2.nabble.com>
ddw_music <jamshark70@gmail.com> writes:
Show 12 quoted lines
> 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...

Show 10 quoted lines
> 
> 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
Previous: ddw_musicNext: mobi phil
Message 8 of 9 in “(osx 10.4.11) can't push from linux to Apache on mac: can't access location”
  1. ddw_musicJun 13, 2010
  2. Tay Ray ChuanJun 13, 2010
  3. ddw_musicJun 13, 2010
  4. Tay Ray ChuanJun 13, 2010
  5. ddw_musicJun 13, 2010
  6. Jakub NarebskiJun 13, 2010
  7. ddw_musicJun 13, 2010
  8. Jakub NarebskiJun 13, 2010
  9. mobi philJun 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.