Hi,
I’m trying to configure my Drobo 5N to use ssh for the git repo (my work laptop has security policies that prohibit mounting unsecured shared directories).
I have set up SSH, using public key authentication. I’m able to SSH to the Drobo, list the Git repo contents, but when I issue the git clone command I get the error “sh: git-upload-pack: not found”
Here’s a screen capture of my Cygwin bash session:
Jim@padfoot ~/testgit
ssh jim@192.168.199.17
Enter passphrase for key '/cygdrive/c/Users/Jim/.ssh/id_rsa.ollivander':
irma-pince:~ ls /mnt/DroboFS/Shares/Public/Git/
config* HEAD* info/ refs/
description* hooks/ objects/
irma-pince:~ $ Connection to 192.168.199.17 closed.
Jim@padfoot ~/testgit
$ ssh jim@192.168.199.17 ls -l /mnt/DroboFS/Shares/Public/Git
Enter passphrase for key '/cygdrive/c/Users/Jim/.ssh/id_rsa.ollivander':
total 28
-rwxrwxrwx 1 root root 23 Oct 4 2018 HEAD
-rwxrwxrwx 1 root root 104 Oct 4 2018 config
-rwxrwxrwx 1 root root 73 Oct 4 2018 description
drwxrwxrwx 2 root root 4096 Oct 4 2018 hooks
drwxrwxrwx 2 root root 4096 Oct 4 2018 info
drwxrwxrwx 229 root root 4096 Apr 8 2019 objects
drwxrwxrwx 5 root root 4096 Oct 4 2018 refs
Jim@padfoot ~/testgit
$ git clone 192.168.199.17:/mnt/DroboFS/Shares/Public/Git
Cloning into 'Git'...
Enter passphrase for key '/cygdrive/c/Users/Jim/.ssh/id_rsa.ollivander':
sh: git-upload-pack: not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Jim@padfoot ~/testgit
My guess is that the current directory for the git clone
command is somehow different from the ssh
command. Any ideas how to troubleshoot this, or suggestions to resolve it? Let me know any other information you need!
TIA
–
Jim