mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
Merge pull request #11006 from ryansavino/fix-confidential-ssh-dockerfile
tests: fix confidential ssh Dockerfile
This commit is contained in:
commit
e40251d9f8
@ -34,4 +34,8 @@ RUN passwd -d root
|
|||||||
# Generated with `ssh-keygen -t ed25519 -f unencrypted -P "" -C ""`
|
# Generated with `ssh-keygen -t ed25519 -f unencrypted -P "" -C ""`
|
||||||
COPY ssh/unencrypted.pub /root/.ssh/authorized_keys
|
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"]
|
ENTRYPOINT ["/usr/sbin/sshd", "-D"]
|
||||||
|
Loading…
Reference in New Issue
Block a user