Skip to content

Commit ac58d91

Browse files
committed
Generated default ssh keys
1 parent dbc1be0 commit ac58d91

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

dockerfiles/dev/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,11 @@ ENV LD_LIBRARY_PATH=/opt/rh/rh-nodejs6/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LI
5151
NPM_CONFIG_PREFIX=$HOME/.npm-global
5252
ENV PATH=$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$GOPATH/bin:$M2_HOME/bin:/opt/rh/rh-nodejs6/root/usr/bin:/usr/local/go/bin:$PATH
5353

54+
RUN sudo mkdir /var/run/sshd
55+
RUN sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && \
56+
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && \
57+
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key -N ''
58+
59+
60+
5461
WORKDIR /home/user

0 commit comments

Comments
 (0)