From 3a824121c7338ec395cf027156ea83f29fe1e6a4 Mon Sep 17 00:00:00 2001 From: hc Date: Fri, 30 May 2025 23:07:58 +0800 Subject: updatedstuff --- docker_build/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docker_build/Dockerfile') diff --git a/docker_build/Dockerfile b/docker_build/Dockerfile index 644b18f..f5d0a46 100644 --- a/docker_build/Dockerfile +++ b/docker_build/Dockerfile @@ -13,7 +13,8 @@ RUN mkdir -p /var/run/sshd && \ ssh-keygen -A && \ sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ - sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config + sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && \ + echo "AllowAgentForwarding yes" >> /etc/ssh/sshd_config # Setup SSH directory for root and ensure root has valid shell RUN mkdir -p /root/.ssh && \ -- cgit v1.2.3-70-g09d2