summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 11:59:03 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 11:59:03 -0400
commit71d846c84b47109830bdb7a484810bc4640a0179 (patch)
treebf123d525379d50d2c713efb1cd90caf2bff3326
parenta19dce5c18f6d6370b58aa3b9dd26550a589fc8c (diff)
README
-rw-r--r--README.txt109
1 files changed, 108 insertions, 1 deletions
diff --git a/README.txt b/README.txt
index a1c0dd8..e65cdbe 100644
--- a/README.txt
+++ b/README.txt
@@ -1 +1,108 @@
1minimal rhizome 1WHAT IT DOES
2------------
3
4This repository contains the code to share itself through Git-over-SSH.
5
6It also contains the code to listen for changes sent to itself through
7Git-over-SSH.
8
9
10
11
12.
13.
14.
15.
16.
17.
18
19
20
21HOW IT WORKS
22------------
23
24Git contains a program `git-receive-pack` which implements a git protocol
25server. The `git-receive-pack` expects to be launched as an SSH server
26"ForcedCommand" in a configuration that protects the server from untrustworthy
27users.
28
29
30
31.
32.
33.
34.
35.
36.
37HOW TO INSTALL
38--------------
39
40
41Run:
42
43
44 make
45
46
47
48This installs the `AnonymousAccessCommand` in the current user's home directory.
49
50Then, if sudo access is available, it enables anonymous access by editing the
51system `OpenSSH` configuration.
52
53
54
55.
56.
57.
58.
59.
60.
61
62
63
64NON-ROOT INSTALLATION
65---------------------
66
67If sudo access is not available, you can install to a different location:
68
69```
70 make SSH_CONFIG_DIR=.config/ssh \
71 SSHD_CONFIG_DIR=.config/ssh/config.d \
72 SSH_LIB_DIR=.local/lib/ssh
73```
74
75Then you will need to run `OpenSSH` on a non-default port (the default port
76requires root access).
77
78
79
80.
81.
82.
83.
84.
85.
86
87
88
89ALTERNATIVE LOCATION OF `AnonymousAccessCommand`
90------------------------------------------------
91
92It is also possible to choose the location of the `AnonymousAccessCommand` itself:
93
94```
95 make USER_SSH_CONFIG_DIR=/.config/ssh
96```
97
98First you will have to make `AuthorizedKeysCommand` vary according to that
99paremeter.
100
101
102
103
104
105
106
107
108