# Private remote repo setup

2 messages from 2009-11-24 to 2009-11-25. Participants: Derek D, Johannes Sixt.
Thread: https://gitlist.dev/t/21740

## Derek D, 2009-11-24 19:04

Subject: Private remote repo setup
Message-ID: <loom.20091124T195818-835@post.gmane.org>
URL: https://gitlist.dev/e/loom.20091124T195818-835%40post.gmane.org

```
Hi all, I am new to Git and I am getting quite frustrated with setting a repo 
on my server so that people with Windows machines can ssh to it and contribute.

This is what I am doing:
On the server:
#git --bare init
Initialized empty Git repository in /opt/apps/git-test/

In tortoiseGIT I go to git clone, provide correct url:
ssh://user@domain/opt/apps/git-test/
tortoiseGIT asks me for a password, I provide it, it's correct, the repository 
gets created on the local machine and...

fatal: '/opt/apps/git-test': unable to chdir or not a git archive
Initialized empty Git repository in C:/path/.git/
fatal: The remote end hung up unexpectedly
Failed

What happened there?

```

## Johannes Sixt, 2009-11-25 06:37

Subject: Re: Private remote repo setup
Message-ID: <4B0CD097.7090408@viscovery.net>
URL: https://gitlist.dev/e/4B0CD097.7090408%40viscovery.net
In-Reply-To: <loom.20091124T195818-835@post.gmane.org>

```
Derek D schrieb:
> Hi all, I am new to Git and I am getting quite frustrated with setting a repo 
> on my server so that people with Windows machines can ssh to it and contribute.
> 
> This is what I am doing:
> On the server:
> #git --bare init
  ^
This looks like you were root when you ran the command.

> Initialized empty Git repository in /opt/apps/git-test/
> 
> In tortoiseGIT I go to git clone, provide correct url:
> ssh://user@domain/opt/apps/git-test/
> tortoiseGIT asks me for a password, I provide it, it's correct, the repository 
> gets created on the local machine and...
> 
> fatal: '/opt/apps/git-test': unable to chdir or not a git archive
> Initialized empty Git repository in C:/path/.git/
> fatal: The remote end hung up unexpectedly
> Failed
> 
> What happened there?

I guess that user does not have sufficient permissions to peek inside
/opt/apps/git-test.

-- Hannes

```
