Merge pull request #11006 from ryansavino/fix-confidential-ssh-dockerfile

tests: fix confidential ssh Dockerfile
This commit is contained in:
Dan Mihai 2025-03-11 11:22:23 -07:00 committed by GitHub
commit e40251d9f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,4 +34,8 @@ RUN passwd -d root
# Generated with `ssh-keygen -t ed25519 -f unencrypted -P "" -C ""`
COPY ssh/unencrypted.pub /root/.ssh/authorized_keys
# Set correct permissions for SSH folders and files
RUN chmod 700 /root/.ssh
RUN chmod 600 /root/.ssh/authorized_keys
ENTRYPOINT ["/usr/sbin/sshd", "-D"]