You should consider using modern ECDSA SSH keys instead of the old RSA keys. They are more secure and supported on all modern systems.
Details about ECDSA and how to generate them can be found in my article.
If you don't want to read a whole article to figure out how to generate this type of key, simply add -t ecdsa to the ssh-keygen command. The why in the article, though, is still a good read.
You should consider using modern ECDSA SSH keys instead of the old RSA keys. They are more secure and supported on all modern systems.
Details about ECDSA and how to generate them can be found in my article.
If you don't want to read a whole article to figure out how to generate this type of key, simply add
-t ecdsa
to thessh-keygen
command. The why in the article, though, is still a good read.Ackchually, Ed25519 is now the go-to recommended algorithm