This is a super-fast blog to show how to crack sshkeys with JohnTheRipper from Kali VM.
Create a key
(Note there are options for doing this but for now we will use the defaults)
Clone Jumbo John (it’s not in Kali by default only the normal JTR is)
git clone https://github.com/openwall/john.git
sudo apt update
sudo apt install git build-essential libssl-dev zlib1g-dev -y
./configure && make
python ssh2john.py ~/.ssh/id_rsa
python ssh2john.py ~/.ssh/id_rsa > sshhash.txt
./john ~/john/run/sshhash.txt –wordlist=passwords.txt
and there we have it a very quick post and a cracked SSH key! remember hack for good, learn all the things and be safe!