privateone commited on
Commit
7d79f33
·
verified ·
1 Parent(s): ffa15fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -79,7 +79,14 @@ 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
  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" && \
 
79
  RUN cp /app/sshd_config /etc/ssh/sshd_config && \
80
  cat /etc/ssh/sshd_config
81
 
82
+ RUN chmod -R 755 /etc/ssh/* &&\
83
+ rm -f /etc/ssh/ssh_host_rsa_key && \
84
+ rm -f /etc/ssh/ssh_host_ecdsa_key && \
85
+ rm -f /etc/ssh/ssh_host_ed25519_key && \
86
+ touch /etc/ssh/ssh_known_hosts
87
+
88
+
89
+
90
  RUN yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "0Ne" && \
91
  yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "0Ne" && \
92
  yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "0Ne" && \