Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » EGit - Windows Share as Remote Repository Over SSH
EGit - Windows Share as Remote Repository Over SSH [message #1855797] Thu, 03 November 2022 10:52 Go to next message
Eclipse UserFriend
Hello,

I am new to git, and version control in general, and am trying to implement it for my team of three developers. We are the only developers for our agency.

I am trying to make the setup as simple as possible to just get the ball rolling. My plan is that we will use EGIT in Eclipse (Spring Tool Suite), with each person running off a local repository for developing and then pushing to a remote repository on a Windows share. I was planning to use SSH to facilitate push/pull between our work PCs and the Server so that I do not have to do any site setup and it seemed easiest while still having authentication.

I have added EGit to Eclipse on my work PC and followed the process to getting a project shared and having the initial commit on my local repository.

I installed OpenSSH on my Windows 2012R2 server, installed Git on it, and initiated a bare repository inside a folder in the share I wish to use as the remote repository.



Here is my remote repository setup in Eclipse:

URI: ssh://domain\user@server:22/share/git/repositories

Host: server

Repository path: share/git/repositories

Protocol: ssh

Port: 22

Authentication: currently using username and password, will eventually switch to SSH key once I get things working




When I try to run the preview I get the following error:

"Transport Error: Cannot get remote repository refs. 'ssh://domain\user@server:22/share/git/repositories": 'git-upload-pack' is not recognized as an internal or external command, operable program or batch file."




I'd appreciate help and recommendations to getting things going in a basic setup.

Thanks
Re: EGit - Windows Share as Remote Repository Over SSH [message #1855824 is a reply to message #1855797] Sat, 05 November 2022 16:24 Go to previous message
Eclipse UserFriend
Two things:

  1. A backslash is not allowed in the authorization part of a URI. %-escape it.
  2. A git clone URI must point to the git repository, not to some directory. Try ".../share/git/repositories/my-repository.git" if the bare repository you had created is named "my-repository.git".

I don't quite understand why you need a Windows share. If you're using an SSH server, the clients don't need any file system access to that server-side repository. Clients will just clone the server-side repository via the SSH server into some local directory.
Previous Topic:How to avoid reading the global user git config
Next Topic:Transport Error: Cannot get remote repository refs. file:// ... not found
Goto Forum:
  


Current Time: Thu May 22 22:57:11 EDT 2025

Powered by FUDForum. Page generated in 0.03197 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top