If you are getting this error
key_load_public: invalid format
🔑 1. Check Your Public Key
Check if you have a public key:
If it does not exist, generate a new one:
If you are getting this error
key_load_public: invalid format
Check if you have a public key:
ls -l ~/.ssh/id_rsa.pub
If it does not exist, generate a new one:
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Ensure your keys have the correct permissions:
eval “$(ssh-agent -s)”
ssh-add ~/.ssh/id_rsa