Skip to content

push fails, asks for userid/password when ssh is setup and works elsewhere #38388

Discussion options

You must be logged in to vote

This shows Git is trying to use HTTPS, not SSH:

fatal: Authentication failed for 'https://github.com/pfarrell51/gows/'

Which protocol gets used depends on the configured URL. You can set the correct (SSH) URL with git remote set-url:

git remote set-url origin git@github.com:pfarrell51/gows.git

After that Git should use SSH.

Replies: 4 comments 1 reply

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@airtower-luna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants