From 5b784385fb92d5524cdaef87e4536c7099349be0 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Tue, 22 Feb 2022 22:15:25 +0100 Subject: [PATCH] Install OpenSSH with PAM support in Alpine --- Dockerfile-alpine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile-alpine b/Dockerfile-alpine index c2dd4fa..d0002a0 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -6,7 +6,8 @@ MAINTAINER Adrian Dvergsdal [atmoz.net] # - OpenSSH needs /var/run/sshd to run # - Remove generic host keys, entrypoint generates unique keys 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 && \ rm -f /etc/ssh/ssh_host_*key*