Fixing SSH Error with Git & Github

Fixing SSH Error with Git & Github


GIT
Git Github

SSH Error on Github

Recently, I had to work in a new working environment, particularly with a different network configuration.

While trying to push the latest changes added to one of my projects to my GitHub, an error occurred:

SSH Error

This was the first time I encountered this error, and after some research online, I concluded that the SSH port (22) was blocked in this network configuration, preventing me from communicating with GitHub via SSH.

One solution is to change the network connection, for example, by using the hotspot feature of your phone.

Another solution is to switch back to HTTPS instead of using SSH.

HTTPS Link

2 - Modify the origin of our Git repository:

Modify Origin

3 - Connect to GitHub

Connect to GitHub

Simply log in with GitHub, and now you can push without any issues!

© 2024 Issam SISBANE