diff --git a/operating_systems/openeuler/Dockerfile b/operating_systems/openeuler/Dockerfile index e46efab..44b2c51 100644 --- a/operating_systems/openeuler/Dockerfile +++ b/operating_systems/openeuler/Dockerfile @@ -6,10 +6,10 @@ ARG UPDATED=false ARG TAG RUN if [ "$UPDATED" = true ]; then dnf upgrade -y; fi \ - && if [ "$TAG" != "20.03-lts" ]; dnf install -y openssh-server passwd shadow-utils; fi \ + && if [ "$TAG" != "20.03-lts" ]; then dnf install -y openssh-server; fi \ && dnf clean all \ && useradd demo \ - && echo "demo" | passwd --stdin demo \ + && echo "demo:demo" | chpasswd \ && ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \ && ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" \ && ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""