Skip to content

Git Push SSH keys not working #22394

Discussion options

You must be logged in to vote

The repository URL in those logs is still the HTTPS one. To use SSH you have to replace it with the matching SSH URL using git remote set-url:

git remote set-url origin git@github.com:user/repo.git

Replace user and repo as appropriate, you can find the full URL on your repository site (green “Code” button, select “SSH” in the popup).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants