How to push commit to GitHub with ssh? #23924
-
Please excuse my stupid, but after GitHub removed the push method with password, how to push commit with ssh? I am using Tortoise Git.
Then I generated a ssh keypair, and uploaded to my github settings. But when I tried to push my commit, Git shows a fatal error: unable to look up git@github.com (port 9418) (). So, where is my mistake? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
AmemiyaSigure:
The |
Beta Was this translation helpful? Give feedback.
-
Oh, it works, thank you a lot. |
Beta Was this translation helpful? Give feedback.
-
If it works, you may mark it as the solution 🐱 |
Beta Was this translation helpful? Give feedback.
The
git://
part, the SSH URL should start with justgit@github.com
. Note the port: SSH should be using 22, which indicates Git misunderstood the protocol it’s supposed to use.