How To Set Up A Secure Git Server At Home (OSX)

on December 3rd, 2010 by Tom 18 Comments Software Processes

In this article I’m going to show you, step by step, how to set up an OSX machine to provide secure access to git repositories over the internet via ssh. This was tested on OSX 10.6.

github provides git repository hosting with a lovely interface. If github isn’t feasible, then this article will help you set up something similar, unfortunately without the nice interface.

I assume that you already have git installed. If not, install the latest version from the git website.

We will be walking through the following steps:

  1. Give the server a static IP address on the local network
  2. Set up port forwarding on the router
  3. Getting dynamic DNS
  4. Add a user named "git" to the server
  5. Setting up ssh securely on the client computers
  6. Setting up ssh securely on the server
  7. Making a bare git repository
  8. Using your new git server

Read full post →