0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Install OpenSSH with PAM support in Alpine

This commit is contained in:
Adrian Dvergsdal 2022-02-22 22:15:25 +01:00
parent f63011130a
commit 5b784385fb
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -6,7 +6,8 @@ MAINTAINER Adrian Dvergsdal [atmoz.net]
# - OpenSSH needs /var/run/sshd to run # - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys # - Remove generic host keys, entrypoint generates unique keys
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk add --no-cache bash shadow@community openssh openssh-sftp-server && \ apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server && \
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
mkdir -p /var/run/sshd && \ mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key* rm -f /etc/ssh/ssh_host_*key*