From a66a469fa0804ba22679b808203030d242efe157 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sat, 3 Jun 2023 14:56:37 -0300 Subject: [PATCH] Change ssh key since RSA is deprecated Copyright (c) 2023 Author. All rights reserved. Licensed under the "THE BEER-WARE LICENSE" (Revision 42): Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. Signed-off-by: Marcos Lilljedahl --- dockerfiles/dind/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/dind/Dockerfile b/dockerfiles/dind/Dockerfile index df60c5c..fc18ad8 100644 --- a/dockerfiles/dind/Dockerfile +++ b/dockerfiles/dind/Dockerfile @@ -39,8 +39,8 @@ WORKDIR /root # Setup certs and ssh keys RUN mkdir -p /var/run/pwd/certs && mkdir -p /var/run/pwd/uploads \ - && ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null \ - && mkdir ~/.ssh && ssh-keygen -N "" -t rsa -f ~/.ssh/id_rsa \ + && ssh-keygen -N "" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key >/dev/null \ + && mkdir ~/.ssh && ssh-keygen -N "" -t ed25519 -f ~/.ssh/id_rsa \ && cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys # Remove IPv6 alias for localhost and start docker in the background ...