Skip to content

Commit

Permalink
laghos needs ssh
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Aug 22, 2023
1 parent 504ca92 commit ee45596
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions laghos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,12 @@ RUN git clone --single-branch --depth 1 https://github.com/mfem/mfem && \
RUN git clone --depth 1 https://github.com/CEED/Laghos laghos && \
cd laghos && \
make

# Hack for ssh for now...
RUN echo " LogLevel ERROR" >> /etc/ssh/ssh_config && \
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
echo " UserKnownHostsFile=/dev/null" >> /etc/ssh/ssh_config && \
cd /root && \
mkdir -p /run/sshd && \
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa && chmod og+rX . && \
cd .ssh && cat id_rsa.pub > authorized_keys && chmod 644 authorized_keys

0 comments on commit ee45596

Please sign in to comment.