privateone commited on
Commit
6673161
·
verified ·
1 Parent(s): 9961e62

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -69,9 +69,13 @@ RUN sed -i 's/Defaults !requiretty/Defaults requiretty/' /etc/sudoers && \
69
  # sudo ufw allow 2222/tcp
70
 
71
  # Generate SSH keys
72
- RUN ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
73
- ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" && \
74
- ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
 
 
 
 
75
 
76
 
77
  # Secure SSH configuration
 
69
  # sudo ufw allow 2222/tcp
70
 
71
  # Generate SSH keys
72
+ #RUN ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
73
+ # ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" && \
74
+ # ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
75
+
76
+ RUN ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" -y && \
77
+ ssh-keygen -q -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" -y && \
78
+ ssh-keygen -q -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" -y
79
 
80
 
81
  # Secure SSH configuration