Too many authentication failuresmv ~/.ssh/config ~/.ssh/cYes, actually this fixed it for me when nothing else here would.
Host in ~/.ssh/config on your local matches the remote IP or domain.IdentityFile exists..pub of the IndentiyFile to the remote authorized_keyschmod 0700 ~/.ssh;chmod 0600 ~/.ssh/*;chmod 0644 ~/.ssh/*.pub-o PreferredAuthentications=password