From 14079d889b36597e4a45414522cca489c2fc9752 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 14 Apr 2026 16:36:11 -0700 Subject: [PATCH] fix container sftp --- spoke/Dockerfile | 8 ++++++-- spoke/compose.yaml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/spoke/Dockerfile b/spoke/Dockerfile index f02f89c..f9ed431 100644 --- a/spoke/Dockerfile +++ b/spoke/Dockerfile @@ -1,8 +1,12 @@ FROM debian:bookworm-slim RUN apt-get update && apt-get install -y autossh openssh-client && rm -rf /var/lib/apt/lists/* -ARG UID=1000 + +RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config +RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config + +RG UID=1000 ARG GID=1000 RUN groupadd -g ${GID} armbian && useradd -m -u ${UID} -g armbian armbian USER armbian WORKDIR /home/armbian -CMD ["autossh", "-M", "0", "-N"] \ No newline at end of file +CMD ["autossh", "-M", "0", "-N"] diff --git a/spoke/compose.yaml b/spoke/compose.yaml index b90da4f..f508aa3 100644 --- a/spoke/compose.yaml +++ b/spoke/compose.yaml @@ -17,7 +17,7 @@ services: volumes: - /home/armbian/.ssh/oilykey2026:/home/armbian/.ssh/oilykey2026:ro - /home/armbian/.ssh/known_hosts:/home/armbian/.ssh/known_hosts:ro - - /home/armbian/share:/home/armbian/share + - /home/armbian/share:/home/armbian/ syncthing: image: syncthing/syncthing container_name: spoke-syncthing