From e40d963bf56f59ad1b62982c26feae5a73971c03 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Mon, 18 Aug 2025 14:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=95=9C=E5=83=8F=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.dev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index 64735be..66db79b 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -16,7 +16,9 @@ RUN apt update && \ apt install -y openssh-server # 配置SSH服务 -RUN echo 'root:fcb0102' | chpasswd && \ +RUN mkdir /var/run/sshd && \ + # 设置root密码,可根据需要修改 + echo 'root:fcb0102' | chpasswd && \ # 允许root登录SSH sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config