Spaces:
Runtime error
Runtime error
changed Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,9 @@ RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/s
|
|
| 8 |
# Set a password for the root user
|
| 9 |
RUN echo "root:Changeme" | chpasswd
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
# Create and change ownership of the /run/sshd directory
|
| 12 |
USER root
|
| 13 |
RUN mkdir /run/sshd
|
|
|
|
| 8 |
# Set a password for the root user
|
| 9 |
RUN echo "root:Changeme" | chpasswd
|
| 10 |
|
| 11 |
+
# Create the sshuser account
|
| 12 |
+
RUN useradd -m -s /bin/bash sshuser
|
| 13 |
+
|
| 14 |
# Create and change ownership of the /run/sshd directory
|
| 15 |
USER root
|
| 16 |
RUN mkdir /run/sshd
|