We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80cc706 commit 243e08bCopy full SHA for 243e08b
Dockerfile
@@ -7,6 +7,7 @@ RUN apk add --no-cache openssh git
7
# -D flag avoids password generation
8
# -s flag changes user's shell
9
RUN adduser -D -s /usr/bin/git-shell git \
10
+ && passwd -u git \
11
&& mkdir -p /git-server/keys /git-server/repos ~git/.ssh
12
13
# This is a login shell for SSH accounts to provide restricted Git access.
sshd_config
@@ -3,7 +3,7 @@ PermitRootLogin no
3
PasswordAuthentication no
4
AllowUsers git
5
6
-Match User git
- X11Forwarding no
- AllowTcpForwarding no
- ForceCommand git-shell
+# other security measures
+X11Forwarding no
+AllowTcpForwarding no
+PermitTTY no
0 commit comments