I switched servers, so I simply rsynced the remote git repository to which I was pushing and pulling changes from over to new server. Now I tried to fetch from it and am getting error:
ssh://user@domain.com:1234/home/user/gitrepos/project.git:
cannot execute: git-upload-pack '/home/user/gitrepos/project.git'
What could be causing this problem? How can I troubleshoot?
P.S. domain and ports, along with file repo dir location are all correct.
When you’re using
giton a remote server, the remote peer also needsgitinstalled. (It’s a bit likersync— having software on the remote endpoint allows for computing details on the remote peer to avoid needless network traffic.)So, be sure that a fully-functional
gitis installed on the remote peer, the commands are located on thePATHwhen you log in viasshnormally as georgebrock points out, and your user account has privileges to execute the commands (in case your login shell is confined with a mandatory access control tool such as AppArmor, SELinux, TOMOYO, or SMACK).