git: 'Permission denied (publickey)' or 'Support for password authentication was removed'
@devsingh05▲ 14 net votes
GitHub no longer accepts account passwords over HTTPS and your SSH key is not registered. Fastest fix on a hackathon laptop: install the GitHub CLI and run gh auth login, choose HTTPS and let it configure git credentials. Otherwise create a personal access token and use it as the password, or generate an SSH key with ssh-keygen and add the public key in GitHub settings. Check which protocol the remote uses with git remote -v.