Fix sshd login failure due to root account not having a password, so set it to an empty password
This commit is contained in:
parent
e4603b7b5b
commit
45b3402101
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ RUN apk add --no-cache \
|
|||
openssh-server \
|
||||
rsync
|
||||
|
||||
RUN mkdir -p /root/.ssh && cp /etc/ssh/sshd_config /etc/default_sshd_config
|
||||
RUN mkdir -p /root/.ssh && \
|
||||
cp /etc/ssh/sshd_config /etc/default_sshd_config && \
|
||||
passwd -d root
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint
|
||||
|
||||
|
|
Loading…
Reference in a new issue