git push origin codeannotation ssh: connect to host bitbucket.org port 22: Connection timed out fatal: Could not read from remote repository.

$ git push origin codeannotation
ssh: connect to host bitbucket.org port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

完美解决办法   windows  linux  找到.ssh目录

我做了下面提到的事情,它开始工作了。

 vim ~/.ssh/config

添加这些行并保存。

Host bitbucket.org
Hostname  altssh.bitbucket.org
Port  443