Secure network repository setup

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

Doing this on github.com is easy. Create an account there, and then create a git repository.If your username is "joe", and your password is "pazz", and the repository is "repo", then accessing this repository through https works through this URL:https://joe:pazz@github.com/joe/repo.git
Another type of secure git repository can be created on for example 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. 

Each user will need to open his or her own account on sourceforge.net. After that, they need to open an e-mail from sourceforge.net and click the link to activate their account. Each user needs to be registered as a member of the project, in this example, project "repo2". This is so that the user can write to the repository. 

So the moderator (or the person to first set up the repository) will need to log onto to his account at sourceforge.net,