diff options
author | jpellegrini <j_p@aleph0.info> | 2019-09-05 17:20:55 -0300 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-09-05 22:20:55 +0200 |
commit | 852b8e2d819f6fdb11b374acce83d7eb83cbe0d3 (patch) | |
tree | c1c92853845e8bfc90433fdcd3a176ddc0cf9183 /docker/root/etc | |
parent | 85f56546c4259ed9c11d31973344228ad667084e (diff) | |
download | gitea-852b8e2d819f6fdb11b374acce83d7eb83cbe0d3.tar.gz gitea-852b8e2d819f6fdb11b374acce83d7eb83cbe0d3.zip |
Make AllowedUsers configurable in sshd_config (#8094)
docker/root/usr/bin/entrypoint already allows for the specification
of USER, USER_UID, USER_GID. But since AllowedUsers is hardcoded in
sshd_config, one cannot log in as a user different ftom git.
This change substitutes ${USER} for git in the sshd_config template.
Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
Diffstat (limited to 'docker/root/etc')
-rw-r--r-- | docker/root/etc/templates/sshd_config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/root/etc/templates/sshd_config b/docker/root/etc/templates/sshd_config index ba92e236e1..bf0b936d7c 100644 --- a/docker/root/etc/templates/sshd_config +++ b/docker/root/etc/templates/sshd_config @@ -25,7 +25,7 @@ ChallengeResponseAuthentication no PasswordAuthentication no PermitEmptyPasswords no -AllowUsers git +AllowUsers ${USER} Banner none Subsystem sftp /usr/lib/ssh/sftp-server |