diff options
| author | hc <hc@email.ch> | 2025-05-30 23:07:58 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2025-05-30 23:07:58 +0800 |
| commit | 3a824121c7338ec395cf027156ea83f29fe1e6a4 (patch) | |
| tree | 9a86e70487b58d2958ff94dda9771709fd55b2f5 /docker_build/Dockerfile | |
| parent | 1de3097b9e7ac4c37734e1d6fbefeb46f7826e43 (diff) | |
updatedstuff
Diffstat (limited to 'docker_build/Dockerfile')
| -rw-r--r-- | docker_build/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
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 && \ | |||
| 13 | ssh-keygen -A && \ | 13 | ssh-keygen -A && \ |
| 14 | sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \ | 14 | sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \ |
| 15 | sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ | 15 | sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ |
| 16 | sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config | 16 | sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && \ |
| 17 | echo "AllowAgentForwarding yes" >> /etc/ssh/sshd_config | ||
| 17 | 18 | ||
| 18 | # Setup SSH directory for root and ensure root has valid shell | 19 | # Setup SSH directory for root and ensure root has valid shell |
| 19 | RUN mkdir -p /root/.ssh && \ | 20 | RUN mkdir -p /root/.ssh && \ |
