Skip to content

Commit

Permalink
fix ssh docker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
theolaurent committed Jan 4, 2024
1 parent 2d7e022 commit 3175a90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ RUN sudo mkdir /var/run/sshd
# Expose the SSH port
EXPOSE 22

# SSH login fix. Otherwise, user is kicked off after login
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

## Finalize

# Setup password for ssh
Expand Down

0 comments on commit 3175a90

Please sign in to comment.