Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git over ssh without Git being installed on server

Tags:

git

ssh

I have full access to some folder on a remote Linux server over ssh and scp. I can upload and download files but not install apps. Now I want to put a git repository on this server. When I try to clone from an over scp copied repository I get the following error message:

sgit-upload-pack: Command not found
fatal: The remote end hung up unexpectedly

Cloning using the same command from Github works as expected. Do I need Git installed on the server? If yes, is there any work around?

like image 685
Mouk Avatar asked Oct 02 '09 12:10

Mouk


2 Answers

I think that git needs to be there. But you can simply install it in the directory you have access to.

like image 131
Roman Plášil Avatar answered Oct 04 '22 23:10

Roman Plášil


You could use SSHFS and mount the directory on your local machine, and then run Git locally.

like image 29
Jacob Rask Avatar answered Oct 05 '22 00:10

Jacob Rask