I am having difficulties to use git command from a bare repo located on an Ubuntu server to another bare repo located on a Windows server 2016 (within a Active Directory)
I am using https://github.com/PowerShell/Win32-OpenSSH on the windows server to allow ssh connections in.
my .ssh/config
Host INTRANET
Hostname 192.168.1.153
User git@INTRANET
IdentityFile ~/.ssh/id_rsa
Allow me to log in whith my rsa key
$ ssh INTRANET
Open a console where:
$ whoami
INTRANET+git
And
$ pwd
/c/Users/git
then
$ ls
myrepo.git
And finally:
$ ls -all myrepo.git/
total 25
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 13:24 .
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 15:52 ..
-rw-r--r-- 1 INTRANET+git 197121 60 Mar 23 11:46 FETCH_HEAD
-rw-r--r-- 1 INTRANET+git 197121 23 Mar 16 11:31 HEAD
-rw-r--r-- 1 INTRANET+git 197121 151 Mar 16 11:30 config
-rw-r--r-- 1 INTRANET+git 197121 73 Mar 16 11:30 description
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 13:24 hooks
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 13:24 info
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 13:24 objects
-rw-r--r-- 1 INTRANET+git 197121 284 Mar 16 11:31 packed-refs
drwxr-xr-x 1 INTRANET+git 197121 0 Mar 27 13:24 refs
Ubuntu is holding a bare repo where
$ cat config
[remote "origin"]
url = INTRANET:~/myrepo.git
But when I
$ git --bare fetch
fatal: ''~/myrepo.git'' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.