How to push commit to GitHub with ssh?

Please excuse my stupid, but after GitHub removed the push method with password, how to push commit with ssh?

I am using Tortoise Git.
And tried to add below to my .gitconfig file.

[url "git://"]
  insteadOf =

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 (port 9418) ().

So, where is my mistake?

The git:// part, the SSH URL should start with just Note the port: SSH should be using 22, which indicates Git misunderstood the protocol it’s supposed to use.

1 Like

Oh, it works, thank you a lot.

1 Like

If it works, you may mark it as the solution :cat:
It may help others too.

1 Like