ssh - How do I get the RSA bit length with the pubkey and openssl? - Information Security Stack Exch
With openssl, if your private key is in file id_rsa, then: openssl rsa -text -noout -in id_rsa will print the private key contents, and the first line of output contains the modulus size in bits. If the key is protected by a passphrase you will have to ty...