File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ RUN addgroup --gid 1001 dev && \
5959# Adjust permissions for /usr/local and home directories
6060RUN chown -R dev:dev /usr/local /home/dev
6161
62- RUN echo "+:dev:ALL" >> /etc/security/access.conf
62+ RUN echo "+:dev:ALL" >> /etc/security/access.conf && touch /etc/nologin
6363
6464# Switch to non-root user
6565USER dev
Original file line number Diff line number Diff line change 3030
3131
3232 echo "Starting SSH service with host keys from /home/dev/ssh_keys on port 2222."
33- /usr/sbin/sshd -D -ddd - e -f /etc/ssh/sshd_config \
33+ /usr/sbin/sshd -D -e -f /etc/ssh/sshd_config \
3434 -o Port={{ .Values.service.targetPort }} \
3535 -o HostKey=/home/dev/ssh_keys/ssh_host_rsa_key \
3636 -o HostKey=/home/dev/ssh_keys/ssh_host_ecdsa_key \
Original file line number Diff line number Diff line change 88 PermitRootLogin no
99 PasswordAuthentication yes
1010 ChallengeResponseAuthentication no
11+ UsePrivilegeSeparation no
1112 UsePAM yes
1213 X11Forwarding yes
1314 PrintMotd no
Original file line number Diff line number Diff line change 11replicaCount : 1
22
33image :
4- source : ghcr.io/syntax3rror404/k8s-devmachine@sha256:b25b3089bece565cf372eb90ac4302db4decbf57af2ee67b6e09df2fa7438d66
4+ source : ghcr.io/syntax3rror404/k8s-devmachine@sha256:d0917c569a0ac6267cb7bc18a0d950dc97afaaf495f799637394a682be81e95e
55 pullPolicy : IfNotPresent
66
77service :
You can’t perform that action at this time.
0 commit comments