mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 15:32:18 +00:00
Dockerfile.test: don't unlock root account
This commit is contained in:
parent
2f1261582a
commit
ca781d9ed5
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ FROM alpine
|
||||||
RUN apk -U add openssh-server openssh-sftp-server sudo python3
|
RUN apk -U add openssh-server openssh-sftp-server sudo python3
|
||||||
RUN adduser -D user
|
RUN adduser -D user
|
||||||
RUN passwd -u user
|
RUN passwd -u user
|
||||||
RUN passwd -u root
|
|
||||||
RUN echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
|
RUN echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
|
||||||
RUN echo "PasswordAuthentication no" > /etc/ssh/sshd_config
|
RUN echo "PasswordAuthentication no" > /etc/ssh/sshd_config
|
||||||
RUN echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config
|
RUN echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in a new issue