Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #777 from progit/ssh_chmod
Browse files Browse the repository at this point in the history
Add a chmod on the ~/.ssh on server
  • Loading branch information
jnavila committed Aug 6, 2014
2 parents 10f3474 + f43fe65 commit d612ee2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion en/04-git-server/01-chapter4.markdown
Expand Up @@ -227,7 +227,11 @@ You just append them to your `authorized_keys` file:
$ cat /tmp/id_rsa.josie.pub >> ~/.ssh/authorized_keys
$ cat /tmp/id_rsa.jessica.pub >> ~/.ssh/authorized_keys

Now, you can set up an empty repository for them by running `git init` with the `--bare` option, which initializes the repository without a working directory:
Key-based SSH authentication usually enforces security by requiring restricted rights on the involved files. To prevent SSH from refusing to work, type this:

$ chmod -R go= ~/.ssh

Now, you can set up an empty repository for your users by running `git init` with the `--bare` option, which initializes the repository without a working directory:

$ cd /opt/git
$ mkdir project.git
Expand Down

0 comments on commit d612ee2

Please sign in to comment.