ankpan18 commited on
Commit
4215b03
·
1 Parent(s): d9d3409

changed Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -8,7 +8,13 @@ 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
- #expose port 22
 
 
 
 
 
 
12
  EXPOSE 22
13
 
14
  # Start the SSH service and run bash as the foreground process
 
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
14
+ RUN chown sshuser:sshuser /run/sshd
15
+ USER sshuser
16
+
17
+ # Expose the SSH port
18
  EXPOSE 22
19
 
20
  # Start the SSH service and run bash as the foreground process