From 0b95ba72b329a211e98e6e61ac6725b1eed3c7e5 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Mon, 2 Feb 2026 02:56:25 +0000 Subject: [PATCH] Fix CMD: Generate host keys in correct custom directory --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8274102..1a61766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,5 +34,5 @@ WORKDIR /data EXPOSE 2222 # Start SSH daemon -# Generate host keys on startup if missing (for ephemeral pods) -CMD ["/bin/bash", "-c", "ssh-keygen -A && /usr/sbin/sshd -D -f /etc/ssh/sshd_config"] \ No newline at end of file +# Fix: Explicitly generate keys into the custom host_keys directory +CMD ["/bin/bash", "-c", "ssh-keygen -f /etc/ssh/host_keys/ssh_host_rsa_key -N '' -t rsa && ssh-keygen -f /etc/ssh/host_keys/ssh_host_ecdsa_key -N '' -t ecdsa && ssh-keygen -f /etc/ssh/host_keys/ssh_host_ed25519_key -N '' -t ed25519 && /usr/sbin/sshd -D -f /etc/ssh/sshd_config"] \ No newline at end of file