Skip to content

Commit 2ad9253

Browse files
author
Marcel Zapf
committed
update
1 parent 78ba3e3 commit 2ad9253

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN groupadd -g 1001 dev && \
6464
echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
6565

6666
# Fix pam
67-
RUN sed -i "s/session required pam_loginuid.so/session optional pam_loginuid.so/" /etc/pam.d/sshd
67+
RUN sed -i "s/session required pam_loginuid.so/session optional pam_loginuid.so/" /etc/pam.d/sshd
6868

6969
# Adjust permissions for /usr/local and home directories
7070
RUN chown -R dev:dev /usr/local /home/dev

chart/templates/cm-entrypoint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
3131
3232
echo "Starting SSH service with host keys from /home/dev/ssh_keys on port 2222."
33-
/usr/sbin/sshd -D -e -f /etc/ssh/sshd_config \
33+
/usr/sbin/sshd -D -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 \

chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ssh:
2020
authorizedKeys: |
2121
# Place auth keys here ...
2222
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu...
23+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBjYNgOeBJ+f0koBLJg7JzT2U9agAGqd/c1gZbVvCZrK
2324
securityContext:
2425
runAsNonRoot: true
2526
runAsUser: 1001

0 commit comments

Comments
 (0)