DockerFile:开启ssh并启动root登录设置默认密码

更多教程-鱼香ROS

三句话

RUN apt update && apt install -y openssh-server
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN echo "root:123" | chpasswd

猜你喜欢

转载自blog.csdn.net/qq_27865227/article/details/121649574