-b
option in order to specify bit size to the ssh-keygen
.RSA
is very old and popular asymmetric encryption algorithm. It is used most of the systems by default. There are some alternatives to RSA like DSA
. We can not generate 4096 bit DSA keys because it algorithm do not supports.ssh-keygen
is 2048 bit. We can also specify explicitly the size of the key like below.1024
bit key with ssh-keygen
.