fix: SSH优化和修复

This commit is contained in:
ZacharyZcR
2025-04-13 13:07:28 +08:00
parent c58b63a6ac
commit b73996884f
4 changed files with 145 additions and 68 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ RUN mkdir /var/run/sshd
# 允许root用户SSH登录并设置密码
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN echo 'root:123456' | chpasswd
RUN echo 'root:Aa123456789' | chpasswd
# 开放22端口
EXPOSE 22