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

Re: Git over SSH

From
Jonathan del Strother <maillist@steelskies.com>
Date
Feb 11, 2008, 12:47 UTC
Message-ID
<57518fd10802110447s61015144gc577d45e2fc81864@mail.gmail.com>
In-Reply-To
<9732aadb0802110438s2a102c8cxd4eb4d0dd9595d52@mail.gmail.com>
On Feb 11, 2008 12:38 PM, Henrik Vendelbo <hvendelbo.dev@googlemail.com> wrote:
Show 13 quoted lines
> I seem to have missed something quite crucial. After many weeks of
> using git locally on two machines, I still haven't managed to
> synchronise over ssh.
>
> I use Mac OS X Leopard on both and have no problem ssh'ing between
> them manually.
>
> Why I try any of the examples in the documentation I always get a
> general failure with some command not being found.
> The last one missing was git-upload-pack. Thing is though from a shell
> logged in as the same user, I can execute git-upload-pack on both
> machine, np.
>

Interactive and non-interactive shells run different scripts on ssh login. The real test for whether your path is set up correctly for git over ssh would be "ssh othermachine type git", which will run 'type git' as a non-interactive command. You could try adding your path to .MacOSX/environment.plist, which will set things up for both interactive and non-interactive sessions.

Previous: Matthieu Moy
Message 3 of 3 in “Git over SSH”
  1. Henrik VendelboFeb 11, 2008
  2. Matthieu MoyFeb 11, 2008
  3. Jonathan del StrotherFeb 11, 2008

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.