Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -43,17 +43,17 @@ COPY . /app
|
|
| 43 |
#RUN sudo ufw disable
|
| 44 |
RUN cp /app/sshd_config /etc/ssh/sshd_config # && cat /etc/ssh/sshd_config
|
| 45 |
|
| 46 |
-
RUN chmod -R 755 /etc/ssh/* &&\
|
| 47 |
-
rm -f /etc/ssh/ssh_host_rsa_* && \
|
| 48 |
-
rm -f /etc/ssh/ssh_host_ecdsa_* && \
|
| 49 |
-
rm -f /etc/ssh/ssh_host_ed25519_* && \
|
| 50 |
-
rm -f /etc/ssh/ssh_known_* && \
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
|
|
|
|
| 57 |
RUN echo " Public Key $(cat /etc/ssh/ssh_host_rsa_key.pub)" && \
|
| 58 |
echo " Private Key $(cat /etc/ssh/ssh_host_rsa_key)"
|
| 59 |
|
|
|
|
| 43 |
#RUN sudo ufw disable
|
| 44 |
RUN cp /app/sshd_config /etc/ssh/sshd_config # && cat /etc/ssh/sshd_config
|
| 45 |
|
| 46 |
+
#RUN chmod -R 755 /etc/ssh/* &&\
|
| 47 |
+
# rm -f /etc/ssh/ssh_host_rsa_* && \
|
| 48 |
+
# rm -f /etc/ssh/ssh_host_ecdsa_* && \
|
| 49 |
+
# rm -f /etc/ssh/ssh_host_ed25519_* && \
|
| 50 |
+
# rm -f /etc/ssh/ssh_known_* && \
|
| 51 |
+
RUN touch /etc/ssh/ssh_known_hosts
|
| 52 |
|
| 53 |
+
RUN chmod -R 777 /etc/ssh/*
|
| 54 |
|
|
|
|
| 55 |
|
| 56 |
+
|
| 57 |
RUN echo " Public Key $(cat /etc/ssh/ssh_host_rsa_key.pub)" && \
|
| 58 |
echo " Private Key $(cat /etc/ssh/ssh_host_rsa_key)"
|
| 59 |
|