# Git over SSH

3 messages from 2008-02-11 to 2008-02-11. Participants: Henrik Vendelbo, Matthieu Moy, Jonathan del Strother.
Thread: https://gitlist.dev/t/12031

## Henrik Vendelbo, 2008-02-11 12:38

Subject: Git over SSH
Message-ID: <9732aadb0802110438s2a102c8cxd4eb4d0dd9595d52@mail.gmail.com>
URL: https://gitlist.dev/e/9732aadb0802110438s2a102c8cxd4eb4d0dd9595d52%40mail.gmail.com

```
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.

So is it MacPort of git that is somehow broken?

Thanks,

Henrik

```

## Matthieu Moy, 2008-02-11 12:45

Subject: Re: Git over SSH
Message-ID: <vpq3arzwtju.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpq3arzwtju.fsf%40bauges.imag.fr
In-Reply-To: <9732aadb0802110438s2a102c8cxd4eb4d0dd9595d52@mail.gmail.com>

```
"Henrik Vendelbo" <hvendelbo.dev@googlemail.com> writes:

> 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.

Can you post a cut-and-paste of a shell session reproducing the error?

-- 
Matthieu

```

## Jonathan del Strother, 2008-02-11 12:47

Subject: Re: Git over SSH
Message-ID: <57518fd10802110447s61015144gc577d45e2fc81864@mail.gmail.com>
URL: https://gitlist.dev/e/57518fd10802110447s61015144gc577d45e2fc81864%40mail.gmail.com
In-Reply-To: <9732aadb0802110438s2a102c8cxd4eb4d0dd9595d52@mail.gmail.com>

```
On Feb 11, 2008 12:38 PM, Henrik Vendelbo <hvendelbo.dev@googlemail.com> wrote:
> 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.

```
