Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -90,7 +90,10 @@ RUN sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config &&
|
|
| 90 |
sed -i 's/#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config && \
|
| 91 |
sed -i 's/#UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && \
|
| 92 |
sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config && \
|
| 93 |
-
echo "AllowUsers admin" >> /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
# Copy all the contents of /etc/ssh to /app/ssh
|
|
|
|
| 90 |
sed -i 's/#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config && \
|
| 91 |
sed -i 's/#UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && \
|
| 92 |
sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config && \
|
| 93 |
+
echo "AllowUsers admin" >> /etc/ssh/sshd_config && \
|
| 94 |
+
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 95 |
+
echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 96 |
+
echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config
|
| 97 |
|
| 98 |
|
| 99 |
# Copy all the contents of /etc/ssh to /app/ssh
|