16 lines
511 B
Docker
16 lines
511 B
Docker
FROM alpine:3.22
|
|
|
|
RUN apk add --no-cache openssh tailscale
|
|
|
|
# Low-privilege login account, key-only. ash shell so interactive jump
|
|
# sessions (ssh bridge@... then ssh onward) work; -D leaves shadow "!"
|
|
# (locked) which OpenSSH rejects even for pubkey auth, so unlock it.
|
|
# Password auth stays off in sshd_config, so an empty password field is inert.
|
|
RUN adduser -D -H -s /bin/ash bridge && passwd -u bridge
|
|
|
|
COPY sshd_config /etc/ssh/sshd_config
|
|
COPY run.sh /run.sh
|
|
RUN chmod +x /run.sh
|
|
|
|
ENTRYPOINT ["/run.sh"]
|