I am getting this error when using sfdx force:org:open or deploy or web:auth:login
ERROR running force:org:open: ERROR_HTTP_502
And this error when running git pull:
kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
But I have no issue connecting to github or salesforce orgs using browser.
I have tried a number of ways investigating this issue. The git config and .zshrc files seem to be normal to me.
Since this issue only happens to me via command line, I am thinking this might have something to do with ssh. But after trying a few things suggested on stackoverflow, I still haven't fixed the issue.
I do understand this error code is not very helpful. But is there any way I can debug into?