Why doesn't my conversion from id_rsa work?

I have an empty file in the final conversion idrsa.hash and when I use command cat idrsa.hash to check the result is

ERRNO2 no such file or directory : id_rsa 

impossible to convert the file with command

usr/share/john/ssh2john.py id_rsa > idrsa.hash the conversion in the file idrsa.hash have this result

ERRNO2 no such file or directory : id_rsa
  • Have you tried specifying the full file path? The error you describe is file not found. Mar 20, 2021 at 18:24
  • In particular if you generated the keyfile(s) with ssh-keygen by default that puts it/them in the directory $HOME/.ssh so if you are in your homedir the relative paths are .ssh/id_rsa .ssh/id_dsa .ssh/id_ecdsa etc. Mar 21, 2021 at 0:15
  • 1
    When asking for help troubleshooting a command, don't describe what happens. Instead, put the command the the actual full result of the output
    – schroeder
    Mar 21, 2021 at 0:46


You must log in to answer this question.

Browse other questions tagged .