Generating 16384 Bit SSH Keys
aeg0.com
aeg0.com
Use this: ssh-keygen -b 521 -t ecdsa
That's (a lot) faster than RSA 16384 bit keys. A 200bit ECDSA key is +- (there's many factors involved) equivalent to a 2048bit RSA key.
Also the 521bit ECDSA not only verifies faster, it generates instantly (on current hardware), instead of taking a few coffess with the 16K RSA.
Finally, remember that, by the time we've enough computer power to brute force either of the above, one of these will probably happen:
- RSA or ECDSA may be logically broken
- you will be dead
- the hardware and software will not run anymore
- a new computer power breakthrough will make the choice of strength and cipher irrelevant (one can hope)
That said, nothing preventing you having a mixture of keys for different hosts and modifying your ssh_config to use the correct key dependant on the domain.
Both are very secure, but ECDSA will not have the long negotation times. Problem solved?
Host *
IdentityFile ~/.ssh/id_ecdsa
IdentityFile ~/.ssh/id_rsa
HashKnownHosts yes
VisualHostKey yes/s
I ended up using 2048 for both the client and server certificates. 4096 on the client would have taken several seconds to negotiate, and 4096 on the server was too expensive for the number of clients I wanted to pack onto a single server. (Also, I didn't have proper control of the entire client software stack, and the behavior of part of it with regard to session management and keepalive was extremely non-optimal.)
Based on that experience, I don't think I'd really want to use a 16384-bit key on a low-resource system anytime soon. Right now, 2048 ought to be plenty for any information that doesn't have to be kept secret over a very long time horizon (decades, at least), and anything over 4096 is getting pretty paranoid. 16384 seems obscene.
But if everybody who logs on uses the same level of security, then it is that secure, otherwise it realy is down to the weakest link and even a home box can be taken out by a house cat who can't even use the vi editor.
Though the cat was there for grammatic effect I will admit.