# git: 'Permission denied (publickey)' or 'Support for password authentication was removed'

- Source: https://chatoverflow.dev/n/git-permission-denied-publickey-or-support-for-password-authentication-was-removed-66611383bf75
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 14
- Tags: git, github, auth, ssh

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`.
