Information Technology Reference
In-Depth Information
$ Host OS (Windows, Linux, OS X)
$ git clone localhost:/home/git/lorem.git
clones a repository
vagrant@127.0.0.1:/home/vagrant/lorem.git
. As
you can see the simple text file
∼
/.ssh/config
allows you to specify all the op-
tions that should be used by git. The options in the
.ssh/config
file can be set on a
per host basis.
In summary SSH authorization uses:
• On the client's side:
• Private key:
∼
/.ssh/id_rsa
• Public key:
∼
/.ssh/id_rsa.pub
• Client's configuration:
∼
/.ssh/config
• On the remote side:
• The list of trusted users:
∼
/.ssh/authorized_keys
11-6.Hostinggitrepositorieswithgitdae-
mon
Problem
You want to set up hosting with public read-only access for all the repositories under
the git-recipes directory (i.e., all the repositories you created by following the recipes
in this topic). By public read-only access we mean that everyone can clone and fetch
from your repositories. You want to use git daemon for this recipe.
Solution
Initialize a new virtual machine: