apparently I need to do this myself

This commit is contained in:
2026-02-27 15:11:15 +11:00
parent 303127de09
commit b283f1e305

View File

@@ -52,18 +52,18 @@ RUN mkdir -p /var/run/sshd && \
# Custom sshd_config for non-root usage # Custom sshd_config for non-root usage
# StrictModes no: Required for non-root / random UID environments # StrictModes no: Required for non-root / random UID environments
# PidFile: Point to /tmp for guaranteed write access # PidFile: Point to /tmp for guaranteed write access
RUN echo "Port 2222 RUN echo "Port 2222 \
PermitRootLogin no PermitRootLogin no \
PasswordAuthentication no PasswordAuthentication no \
PubkeyAuthentication yes PubkeyAuthentication yes \
StrictModes no StrictModes no \
PidFile /tmp/sshd.pid PidFile /tmp/sshd.pid \
HostKey /data/ssh/ssh_host_rsa_key HostKey /data/ssh/ssh_host_rsa_key \
HostKey /data/ssh/ssh_host_ecdsa_key HostKey /data/ssh/ssh_host_ecdsa_key \
HostKey /data/ssh/ssh_host_ed25519_key HostKey /data/ssh/ssh_host_ed25519_key \
AuthorizedKeysFile .ssh/authorized_keys AuthorizedKeysFile .ssh/authorized_keys \
ChallengeResponseAuthentication no ChallengeResponseAuthentication no \
UsePAM yes UsePAM yes \
Subsystem sftp /usr/lib/openssh/sftp-server" > /etc/ssh/sshd_config Subsystem sftp /usr/lib/openssh/sftp-server" > /etc/ssh/sshd_config
# Create a user 'claw' (UID 1000) with sudo access # Create a user 'claw' (UID 1000) with sudo access