diff --git a/helper/communicator/sshkey/generate.go b/helper/communicator/sshkey/generate.go index d90295bc6..8db0004db 100644 --- a/helper/communicator/sshkey/generate.go +++ b/helper/communicator/sshkey/generate.go @@ -171,7 +171,7 @@ func GeneratePair(t Algorithm, rand io.Reader, bits int) (*Pair, error) { return NewPair(publicKey, privateKey) case RSA: if bits == 0 { - bits = 3072 + bits = 4096 } if bits < 1024 { return nil, ErrInvalidRSAKeySize