I try to push my project and it shows me this in the terminal (I use MacOS): fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Operation timed out
I tried to clone a project and it showed me that, then I tried to push one in my personal GitHub and it showed it again. Before trying to clone the project it worked well. Idk why is this happening.
joanskenderi@joans-mbp Course Goals App % git push origin master
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Operation timed out
joanskenderi@joans-mbp Course Goals App % git remote -v
origin git://github.com/joanskenderi/Course-Goals-App.git (fetch)
origin git://github.com/joanskenderi/Course-Goals-App.git (push)
joanskenderi@joans-mbp Course Goals App %
The problem here is that you're using the unauthenticated Git protocol on port 9418 (that can be seen with git://
). GitHub turned that off sometime back because it's unencrypted and can be tampered with by pretty much anybody.
Even when it was supported on GitHub, you were never able to push with it because there was no way to authenticate.
You need to change the remote URL to either HTTPS or SSH, like so:
$ git remote set-url origin https://github.com/joanskenderi/Course-Goals-App.git
# or
$ git remote set-url origin ssh://github.com/joanskenderi/Course-Goals-App.git
It's best to use the one for which you already have credentials (either a personal access token or an SSH key) set up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With