ssh2john id_rsa > hash.txt

Extract a crackable hash from an encrypted file with the 2john helpers, then crack it with John

Command: Linux

References:

https://www.kali.org/tools/john/#bitlocker2john