Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -68,7 +68,8 @@ RUN sed -i 's/Defaults !requiretty/Defaults requiretty/' /etc/sudoers && \
|
|
| 68 |
# Generate SSH host keys
|
| 69 |
#RUN ssh-keygen -A &&\
|
| 70 |
# sudo ufw allow 2222/tcp
|
| 71 |
-
|
|
|
|
| 72 |
|
| 73 |
#RUN rm -f /etc/ssh/ssh_host_* && \
|
| 74 |
# yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
|
|
@@ -85,7 +86,8 @@ RUN sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config &&
|
|
| 85 |
echo "AllowUsers *" >> /etc/ssh/sshd_config && \
|
| 86 |
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 87 |
echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 88 |
-
echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config
|
|
|
|
| 89 |
|
| 90 |
|
| 91 |
# Copy all the contents of /etc/ssh to /app/ssh
|
|
|
|
| 68 |
# Generate SSH host keys
|
| 69 |
#RUN ssh-keygen -A &&\
|
| 70 |
# sudo ufw allow 2222/tcp
|
| 71 |
+
0
|
| 72 |
+
RUN sudo ufw disable
|
| 73 |
|
| 74 |
#RUN rm -f /etc/ssh/ssh_host_* && \
|
| 75 |
# yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
|
|
|
|
| 86 |
echo "AllowUsers *" >> /etc/ssh/sshd_config && \
|
| 87 |
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 88 |
echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config && \
|
| 89 |
+
echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config && \
|
| 90 |
+
cat /etc/ssh/sshd_config
|
| 91 |
|
| 92 |
|
| 93 |
# Copy all the contents of /etc/ssh to /app/ssh
|