From 28e7478352ef5502440522e82ffbb9962ce5cbb7 Mon Sep 17 00:00:00 2001 From: Eungbean Lee <27231912+eungbean@users.noreply.github.com> Date: Fri, 20 Nov 2020 19:08:00 +0900 Subject: [PATCH] Fixed Error : Missing privilege separation directory: /run/sshd ssh-keygen: generating new host keys: DSA Missing privilege separation directory: /run/sshd https://github.com/microsoft/WSL/issues/3621 --- rootfs/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/entrypoint.sh b/rootfs/entrypoint.sh index dcacc97..b0a01de 100644 --- a/rootfs/entrypoint.sh +++ b/rootfs/entrypoint.sh @@ -2,6 +2,7 @@ # Generate host keys if not present ssh-keygen -A +mkdir -p /run/sshd # Set root password to empty SSH_ROOT_PASSWORD="$SSH_ROOT_PASSWORD"