Skip to content

Commit

Permalink
Create home directory for 'tunnel' user
Browse files Browse the repository at this point in the history
Fixes #7.
  • Loading branch information
lpsinger committed Sep 12, 2023
1 parent 68cc0db commit 3ee0203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN \
# Nuke SSH host keys so that we regenerate them at container run time
rm /etc/ssh/ssh_host_* && \
# Create 'tunnel' user
adduser --system tunnel && \
adduser --system --home /home/tunnel tunnel && \
# Create runtime dir for sshd
mkdir /run/sshd

Expand Down
2 changes: 1 addition & 1 deletion test/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:stable-slim
RUN apt-get update && \
apt-get -y install --no-install-recommends openssh-client netcat-openbsd && \
rm -rf /var/lib/apt/lists/* && \
adduser --system clientuser
adduser --system --home /home/clientuser clientuser

COPY entrypoint.sh /

Expand Down

0 comments on commit 3ee0203

Please sign in to comment.