ssh-bridge 1.0.4: Alpine openssh has no PAM (UsePAM invalid); unlock bridge in shadow + give it ash shell for interactive jumps
This commit is contained in:
1 parent
b33b52e7a9
commit
83be6c6309
4 files changed
+10
-7
No files matched your search
@@ -2,8 +2,11 @@ FROM alpine:3.22
|
||||
|
||||
RUN apk add --no-cache openssh tailscale
|
||||
|
||||
# Low-privilege login account; nologin shell — sessions exist only to forward.
|
||||
RUN adduser -D -H -s /sbin/nologin bridge
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user