diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 16:04:55 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 16:04:55 +0200 |
| commit | 2ec824a58ce69afaa075dd65eec4e4f05e035ba4 (patch) | |
| tree | ae2f70f37d17a005c5f94ea1fe35af8fda8a4ee2 /f3s/git-server/docker-image | |
| parent | 8197e3f9c1b89bc499f5ac070a706b0ff9ee89ab (diff) | |
Unlock git user account for SSH authentication
SSH requires user accounts to be unlocked (not have ! in shadow).
Use 'passwd -u' to unlock the git user account.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server/docker-image')
| -rw-r--r-- | f3s/git-server/docker-image/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/f3s/git-server/docker-image/Dockerfile b/f3s/git-server/docker-image/Dockerfile index f191443..5b703c0 100644 --- a/f3s/git-server/docker-image/Dockerfile +++ b/f3s/git-server/docker-image/Dockerfile @@ -8,7 +8,8 @@ RUN apk add --no-cache openssh git RUN adduser -D -u 1000 -s /usr/bin/git-shell git && \ mkdir -p /home/git/.ssh /repos && \ chown -R git:git /home/git /repos && \ - echo "/usr/bin/git-shell" >> /etc/shells + echo "/usr/bin/git-shell" >> /etc/shells && \ + passwd -u git # Copy sshd configuration to /tmp (will be copied to /etc/ssh by entrypoint) COPY sshd_config /tmp/sshd_config |
