Forums

ssh: connect to host bitbucket.org port 22: Network is unreachable

Hi,

I'm trying to pull from my bitbucket repo but unable to. It used to work for the previous months but just tried now and it's not working.

ssh: connect to host bitbucket.org 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.

Thanks.

Thanks for the heads--up! We have to explicitly allowlist the IP addresses used by BitBucket, and it looks like they've just changed them. I've updated our list of IPs just now, so it should work if you try again.

Looks like this issue might be back again. I am receiving same error.

Are you getting the same "network is unreachable" error? They normally post about these IP address changes on their blog and the last change I see there is the one in August.

Just now:
...$ telnet bitbucket.org 22
Trying 104.192.142.26...
Trying 104.192.142.24...
Trying 104.192.142.25...
Trying 2401:1d80:321c:2:0:bbc:1:df7c...
Trying 2401:1d80:321c:1:0:bbc:1:df7c...
Trying 2401:1d80:321c::bbc:1:df7c...
telnet: Unable to connect to remote host: Network is unreachable

@souldivers Do you have an example public repo on bitbucket that we could try to pull and get repro on a free account?

You can try with this one: https://GovertBuijs@bitbucket.org/GovertBuijs/test

There doesn't seem to be any issue with accessing bitbucket at the moment. Just try again.