Publickey returning error code 128

I’m trying to clone a repository using SSH. I have an SSH key set up on my account and Git as told me to. It’s been working fine until just now.

When I try to clone my repository using SSH, I get error code 128:

git clone; echo $?Cloning into 'speedo.js' Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.128

This will also occur in an administrative session.

From Microsoft’s Docs:

128 (0x80)
There are no child processes to wait for.

This doesn’t make that much sense. SSH shouldn’t reach this point and, in the worst scenario, at least fallback to exit code 5 - access is denied or 3 - the system cannot find the path specified.

My best guess is it might be a problem with my SSH key. I may need to make another one. (Which turned out true)

Is there any way to prevent this in the future?

Git/GitHub looks for id_rsa as a default key. If you’re using a different key for GitHub, you will need to provide the identity file.