diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-02-20 04:13:31 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-02-20 04:13:31 +0700 |
| commit | b7f1b1435ad5edc572a58694d642e00103179813 (patch) | |
| tree | 76ab754d346ffe7a33afd0906dafa4b9d266ed38 | |
| parent | 4fef40d8353b8af0f8c6c2b6ff87efc45e1cc13b (diff) | |
Fix git-server: add git-shell to /etc/shells
OpenSSH rejects login for users whose shell is not listed
in /etc/shells. Without this, SSH key auth fails with
"Permission denied" even with a valid key.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| -rw-r--r-- | git-server/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-server/Dockerfile b/git-server/Dockerfile index 4f14a5a..3fdf26b 100644 --- a/git-server/Dockerfile +++ b/git-server/Dockerfile @@ -12,6 +12,7 @@ WORKDIR /git-server/ # -s flag changes user's shell RUN mkdir /git-server/keys \ && adduser --disabled-password --shell /usr/bin/git-shell git \ + && echo /usr/bin/git-shell >> /etc/shells \ && mkdir /home/git/.ssh |
