use rsa instead of ed25519

This commit is contained in:
Andras Bacsai 2023-06-23 09:35:34 +02:00
parent 6701e07335
commit 59ff3a794d

View File

@ -106,9 +106,9 @@ fi
# Merge .env and .env.production. New values will be added to .env
sort -u -t '=' -k 1,1 /data/coolify/source/.env /data/coolify/source/.env.production | sed '/^$/d' >/data/coolify/source/.env.temp && mv /data/coolify/source/.env.temp /data/coolify/source/.env
# Generate an ssh key (ed25519) at /data/coolify/ssh/keys/id.root@host.docker.internal
# Generate an ssh key (rsa 8192) at /data/coolify/ssh/keys/id.root@host.docker.internal
if [ ! -f /data/coolify/ssh/keys/id.root@host.docker.internal ]; then
ssh-keygen -t ed25519 -f /data/coolify/ssh/keys/id.root@host.docker.internal -q -N "" -C root@coolify
ssh-keygen -t rsa -b 8192 -f /data/coolify/ssh/keys/id.root@host.docker.internal -q -N "" -C root@coolify
chown 9999 /data/coolify/ssh/keys/id.root@host.docker.internal
fi