From 2514e11a2d26f5e35b711e2d2655773e51b2353d Mon Sep 17 00:00:00 2001 From: Jack Shaw Date: Tue, 24 Jan 2023 18:01:00 +0000 Subject: [PATCH] Increase key bit size to 4096 --- ssh/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh/generate.go b/ssh/generate.go index deda20c7..26756d26 100644 --- a/ssh/generate.go +++ b/ssh/generate.go @@ -20,9 +20,9 @@ var rsaGenerateKey = rsa.GenerateKey // KeyBits is used to determine the number of bits to use for the RSA keys // created using the GenerateKey function. -var KeyBits = 3072 +var KeyBits = 4096 -// GenerateKey makes a 3072 bit RSA no-passphrase SSH capable key. The bit +// GenerateKey makes a 4096 bit RSA no-passphrase SSH capable key. The bit // size is actually controlled by the KeyBits var. The private key returned is // encoded to ASCII using the PKCS1 encoding. The public key is suitable to // be added into an authorized_keys file, and has the comment passed in as the