Compare commits

..

No commits in common. "ssh-test" and "main" have entirely different histories.

2 changed files with 0 additions and 17 deletions

View File

@ -14,21 +14,8 @@ RUN apt-get update && apt-get install -y \
util-linux \
bsdmainutils \
vim \
openssh-server \
&& rm -rf /var/lib/apt/lists/*
# Create necessary directories for SSH
RUN mkdir /var/run/sshd
# Create the user 'spiri' and set passwords for both 'root' and 'spiri'
RUN useradd -m spiri && \
echo 'root:spiri-friend' | chpasswd && \
echo 'spiri:spiri-friend' | chpasswd && \
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# Expose SSH port
EXPOSE 22
# Clone the xbnet repository
RUN git clone https://github.com/jgoerzen/xbnet.git /usr/src/xbnet

View File

@ -16,10 +16,6 @@ echo "Starting entrypoint.sh"
echo "Setting associated environment variables. Calling /set-env-vars.sh"
source /set-env-vars.sh
# Start SSH in the background
echo "Starting SSH service..."
/usr/sbin/sshd
# Main loop
loop() {
echo "Starting loop"