ssh2jonh.py
There is a Python script called ssh2john.py
for SSH keys, which generates the corresponding hashes for encrypted SSH keys, which we can then store in files. It's preinstalled in Kali linux:
Basic commands
Save the ssh private key as a hash:
Now we can crack the hash with johntheripper: