Trouble with SSH #21577
-
I’m trying to use SSL instead of a password. It worked one time but now fails. This is the message I receive: ??? -south kona farms |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
That is no failure. It means your SSH key works and GitHub recognizes it for your account. You can now use SSH as a transport for Git (e.g. |
Beta Was this translation helpful? Give feedback.
-
When I type git push, it continues to ask for a password. What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
-
Most likely your local repository is still configured to use a HTTPS URL to access the GitHub repository. You need to change the URL to the SSH one. You can find the right URL by clicking the green “Code” button on the repository page and selecting “SSH”, it should look something like this:
You can change the remote URL with the following command (change URL and remote name as needed):
See also: Git - Working with Remotes |
Beta Was this translation helpful? Give feedback.
-
Thank you git remote set-url origin git@github.com:southkonafarms/cosmos.git did the trick. south kona farms |
Beta Was this translation helpful? Give feedback.
-
Please select Trouble with SSL - #4 by airtower-luna and mark it as the solution. |
Beta Was this translation helpful? Give feedback.
-
Solution posted |
Beta Was this translation helpful? Give feedback.
Thank you
git remote set-url origin git@github.com:southkonafarms/cosmos.git
did the trick.
south kona farms