Trouble Connecting to Remote
Too many authentication failures
mv ~/.ssh/config ~/.ssh/c2.
Restart the Mac
Yes, actually this fixed it for me when nothing else here would.
Reinstall the SSH key
- Make sure the value for
Hostin ~/.ssh/config on your local matches the remote IP or domain. - Make sure the
IdentityFileexists. - Paste the contents of
.pubof the IndentiyFile to the remote _authorizedkeys - Update permissions on remote and local i.e.,
chmod 0700 ~/.ssh;chmod 0600 ~/.ssh/*;chmod 0644 ~/.ssh/*.pub
Mitigation Options
Force login using password
- Add this to the ssh:
-o PreferredAuthentications=password - Enter the password to see if you can connect that way. If so the issue is with the certificate.