Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -79,8 +79,8 @@ COPY . /app
|
|
| 79 |
RUN cp /app/sshd_config /etc/ssh/sshd_config && \
|
| 80 |
cat /etc/ssh/sshd_config
|
| 81 |
|
| 82 |
-
RUN rm -f /etc/ssh/ssh_* && \
|
| 83 |
-
|
| 84 |
yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "0Ne" && \
|
| 85 |
yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "0Ne" && \
|
| 86 |
ssh-keyscan -p 2222 0.0.0.0 >> /etc/ssh/ssh_known_hosts
|
|
|
|
| 79 |
RUN cp /app/sshd_config /etc/ssh/sshd_config && \
|
| 80 |
cat /etc/ssh/sshd_config
|
| 81 |
|
| 82 |
+
# RUN rm -f /etc/ssh/ssh_* && \
|
| 83 |
+
RUN yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "0Ne" && \
|
| 84 |
yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "0Ne" && \
|
| 85 |
yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "0Ne" && \
|
| 86 |
ssh-keyscan -p 2222 0.0.0.0 >> /etc/ssh/ssh_known_hosts
|