]> git.proxmox.com Git - pve-cluster.git/commitdiff
ssh: default to 4096 bit keys when generating
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 21 Dec 2023 09:46:09 +0000 (10:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 07:45:02 +0000 (08:45 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/Cluster/Setup.pm

index 07020d7e19f4c8211d961bd553116db59336f334..4b12bb88fccb63152ecbd2fd88a1f8c9c5868aab 100644 (file)
@@ -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