How to generate 2048 RSA instead of 4096 RSA SSH keys?

Discussion in 'General' started by nushara, Sep 19, 2020.

  1. nushara

    nushara New Member

    Hello everyone,

    does someone of you know how I can generate 2048 RSA keys instead of 4096 RSA keys with the automatic renewal scripts in place?

    My issue is that I get very long handshakes (around 700ms) which is related to the 4096 keys. So I would like to use 2048 instead.

    Would be great if someone of you could tell me how to change this so my next auto-renewed SSH keys are shorter.

    Thank you in advance :)
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    How did you generate 4096 rsa key since the default is 2048 if you simply use
    "ssh-keygen -t rsa" that is without "-b 4096"?

    What "auto renew" ssh keys do you mean and why do you need its script so badly?

    I haven't renewed my ssh (4096 rsa) key so far though I can always make a new one if the existing one is too old or may be compromised.
     

Share This Page