This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to OpenSSH 7.9 / Alpine Linux 3.9.4.
- Loading branch information
1 parent
9475656
commit 22fe8db
Showing
4 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM alpine:3.9 | ||
LABEL maintainer "Adrian B. Danieli - https://github.com/sickp" | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
EXPOSE 22 | ||
COPY rootfs / | ||
|
||
RUN apk add --no-cache openssh \ | ||
&& sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \ | ||
&& echo "root:root" | chpasswd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/ash | ||
|
||
# generate host keys if not present | ||
ssh-keygen -A | ||
|
||
# do not detach (-D), log to stderr (-e), passthrough other arguments | ||
exec /usr/sbin/sshd -D -e "$@" |