From: Fabian Grünbichler Date: Thu, 21 Dec 2023 09:46:09 +0000 (+0100) Subject: ssh: default to 4096 bit keys when generating X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=81936212209a154e34db4c3832c42e3c112fa724;p=pve-cluster.git ssh: default to 4096 bit keys when generating Signed-off-by: Fabian Grünbichler --- diff --git a/src/PVE/Cluster/Setup.pm b/src/PVE/Cluster/Setup.pm index 07020d7..4b12bb8 100644 --- a/src/PVE/Cluster/Setup.pm +++ b/src/PVE/Cluster/Setup.pm @@ -157,7 +157,7 @@ sub setup_rootsshconfig { # create ssh key if it does not exist if (! -f $ssh_root_rsa_key_public) { mkdir '/root/.ssh/'; - system ("echo|ssh-keygen -t rsa -N '' -b 2048 -f ${ssh_root_rsa_key_private}"); + system ("echo|ssh-keygen -t rsa -N '' -b 4096 -f ${ssh_root_rsa_key_private}"); } # create ssh config if it does not exist