Skip to content

Commit 381ddf8

Browse files
allow root login via SSH for compatibility with hackingBuddyGPT
1 parent c959c00 commit 381ddf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎docker/Dockerfile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ COPY scenarios/${SETUP_SCRIPT} /tmp/setup.sh
3030
RUN bash /tmp/setup.sh && rm /tmp/setup.sh
3131

3232
# 4 - prepare SSH daemon
33-
RUN mkdir /var/run/sshd
33+
RUN mkdir /var/run/sshd && \
34+
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \
35+
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
3436
EXPOSE 22
3537

3638
CMD ["/usr/sbin/sshd","-D","-e"]

0 commit comments

Comments
 (0)