I have the following file in ~/.ssh
that has my public SSH key:
- authorized_keys
I then run the following and add my passphrase and get no errors or warnings:
$ ssh-add ~/.ssh/authorized_keys
When I try to list the fingerprints I get:
$ ssh-add -l
> The agent has no identities.
When I re-run ssh-add
and follow up with echo $?
it returns an exit code of 1
meaning a failure occurred. This documentation says that code 1 means the error was caused by:
Invalid identification string of SSH-protocol
What does this mean exactly, and how do I resolve it?