Skip to content

Commit

Permalink
squashme: change ssh host keys location
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Jan 18, 2023
1 parent 4f4877b commit 39132c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker/py/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ RUN mkdir -p "$HOME/.renku/bin" && \
mkdir -p "$HOME/.ssh" && \
touch "$HOME/.ssh/authorized_keys" && \
chmod 600 "$HOME/.ssh/authorized_keys" && \
ssh-keygen -q -N "" -t dsa -f /opt/ssh/ssh_host_dsa_key && \
ssh-keygen -q -N "" -t rsa -b 4096 -f /opt/ssh/ssh_host_rsa_key && \
ssh-keygen -q -N "" -t ecdsa -f /opt/ssh/ssh_host_ecdsa_key && \
ssh-keygen -q -N "" -t ed25519 -f /opt/ssh/ssh_host_ed25519_key && \
ssh-keygen -q -N "" -t dsa -f /opt/ssh/ssh_host_keys/ssh_host_dsa_key && \
ssh-keygen -q -N "" -t rsa -b 4096 -f /opt/ssh/ssh_host_keys/ssh_host_rsa_key && \
ssh-keygen -q -N "" -t ecdsa -f /opt/ssh/ssh_host_keys/ssh_host_ecdsa_key && \
ssh-keygen -q -N "" -t ed25519 -f /opt/ssh/ssh_host_keys/ssh_host_ed25519_key && \
echo $'if (tty -s); then\n\
source ~/.renku/venv/bin/activate\n\
export PATH=/opt/conda/bin:$PATH\n\
Expand Down
8 changes: 4 additions & 4 deletions docker/py/sshd_config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Include /opt/ssh/sshd_config.d/*.conf
Port 2022

HostKey /opt/ssh/ssh_host_dsa_key
HostKey /opt/ssh/ssh_host_rsa_key
HostKey /opt/ssh/ssh_host_ecdsa_key
HostKey /opt/ssh/ssh_host_ed25519_key
HostKey /opt/ssh/ssh_host_keys/ssh_host_dsa_key
HostKey /opt/ssh/ssh_host_keys/ssh_host_rsa_key
HostKey /opt/ssh/ssh_host_keys/ssh_host_ecdsa_key
HostKey /opt/ssh/ssh_host_keys/ssh_host_ed25519_key

ChallengeResponseAuthentication no

Expand Down

0 comments on commit 39132c1

Please sign in to comment.