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:
parent
f63011130a
commit
5b784385fb
1 changed files with 2 additions and 1 deletions
|
@ -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*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue