privateone commited on
Commit
ff9772d
·
verified ·
1 Parent(s): fdba4f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- touch /etc/ssh/ssh_known_hosts
52
 
53
- #RUN chmod -R 755 /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
 
 
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