ssh-bridge 1.1.0: fleet relay per brief - persistent /data/home/bridge (bash), git+openssh-client pkgs, busybox crond with /data/crontabs spool, accept-dns=true, MaxSessions 20, no ForceCommand

This commit is contained in:
Hermes Sysadmin committed 2026-11-20 00:23:33 +00:00
1 parent 83be6c6309
commit 685b3542e9
5 files changed
+58 -56

No files matched your search

+6 -6
View File
@@ -1,12 +1,12 @@
FROM alpine:3.22
RUN apk add --no-cache openssh tailscale
RUN apk add --no-cache openssh openssh-client tailscale bash git
# 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
# Low-privilege login account, key-only. bash shell for interactive jumps and
# fleet scripts; home lives on /data so it survives add-on updates/restarts.
# -D leaves shadow "!" (locked) which OpenSSH rejects even for pubkey auth,
# so unlock it; password auth stays off in sshd_config, empty field is inert.
RUN adduser -D -s /bin/bash -h /data/home/bridge bridge && passwd -u bridge
COPY sshd_config /etc/ssh/sshd_config
COPY run.sh /run.sh