'Android Studio in Windows 10 failing to push or update project on GitLab (ssh port 22 fails to connect)

I am getting the following error:

ssh: connect to host gitlab.com port 22: Network is unreachable
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

When I check on websites like (https://canyouseeme.org/), it also doesn't see my service on <my IP-Address> on port (22).

However, PyCharm can push or update projects on GitLab and GitLab without fail.

I have tried solutions like adding Inbound/Outbound Rules in Windows Defender Firewall with Advanced Security on Local Computer for port 22 as mentioned in some YouTube videos and (blog)posts/articles on the web. This didn't change any of the above for me.

This could be relevant though: I had to change my End-Point Security (from Sophos Antivirus to Cortex XDR) recently. I am suspecting this could have something to do with my problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source