Bitvise SSH + Git + Start Directory

I am using Bitvise SSH Server on a Windows computer and I want to create different virtual user accounts in order to contribute git repositories. (Git push will be done using ssh).

So for example, I can use

git clone ssh://mydomain.eu/d/gitrepos/username/repository_name

in the cmd client shell, which works fine, but is somewhat less than ideal, because everyone can access all repositories + view all the time.

Thatswhy I want to set the shell start directory, I overwrote the Terminal Shell Start Directory option with

"D:\Gitrepos\username" 

in setting up a virtual account in ssh battle.

This seems to work at a glance when I test it with

ssh username@mydomain.eu

and enter the password Im in the terminal:

D:\Gitrepos\username>

just as I wanted.

Now the problem is:

git :

git clone ssh://kratos@tibiafun.eu/repository_name

, :

"fatal: 'D:/Programs/Git/repository_name' does not appear to be a git repository"

, , ! "D:/Programs/ Git" - git, , , /bin, git.exe.

, :

  • : Windows Server 2008 R2
  • Git: msysgit 1.9.2

- , , , ?

!...

+4
1

:

git daemon --base-path=D:/Gitrepos --export-all --enable=receive-pack

Unix .

+1

Source: https://habr.com/ru/post/1539425/


All Articles