Secure network repository setup

Introduction

In this tutorial we are going to set up a secure network repository.

It uses a git repository on sourceforge.net.

Open an account on sourceforge.net. We will use the username "joe" in this tutorial.

Register a new project on your personal account page on sourceforge.net. Let's call this project "repo2".

Enable project feature "Git" on this project. This provides the repository.

The next thing is to try whether you can read the repository properly. To try that, open a terminal and issue the following command:

git ls-remote ssh://joe@repo2.git.sourceforge.net/gitroot/repo2/repo2

This command probably will ask for your password, and the first time it could ask you whether you want to continue connecting. But it should show no errors. If it completes without errors, then your secure repository works well.

The repository that was created in this tutorial has the following URL:

ssh://user@repo2.git.sourceforge.net/gitroot/repo2/repo2

The users that are going to use this repository need this URL. Where it says "user", each user would need to fill in his own username.