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 <marcosnils@gmail.com>
This commit is contained in:
@@ -39,8 +39,8 @@ WORKDIR /root
|
|||||||
|
|
||||||
# Setup certs and ssh keys
|
# Setup certs and ssh keys
|
||||||
RUN mkdir -p /var/run/pwd/certs && mkdir -p /var/run/pwd/uploads \
|
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 \
|
&& ssh-keygen -N "" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key >/dev/null \
|
||||||
&& mkdir ~/.ssh && ssh-keygen -N "" -t rsa -f ~/.ssh/id_rsa \
|
&& mkdir ~/.ssh && ssh-keygen -N "" -t ed25519 -f ~/.ssh/id_rsa \
|
||||||
&& cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
|
&& cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
|
||||||
|
|
||||||
# Remove IPv6 alias for localhost and start docker in the background ...
|
# Remove IPv6 alias for localhost and start docker in the background ...
|
||||||
|
|||||||
Reference in New Issue
Block a user