Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket port 22 connection timed out

Roman Zahradník June 10, 2020

Hello I am trying to connect to `ssh -Tvvv git@bitbucket.org` 

But I am getting:
OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/romzah/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving "bitbucket.org" port 22
debug2: ssh_connect_direct
debug1: Connecting to bitbucket.org [2406:da00:ff00::34cc:ea4a] port 22.


Can somebody help me? I went through all of the similar problems over the internet and here in forum but nothing helped me so far.

1 answer

0 votes
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2020

@Roman Zahradník 

 

Hi Roman

welcome to the Atlassian community.

How are you connected to the internet is there somewhere a proxy inbetween.

Any chance that firewall rules are in place that block access to bitbucket.org

 

Cheers

Kurt

Roman Zahradník June 11, 2020

I am not aware of that, the weird thing is that it was working last week ago without any problems. For example I was checking GitHub and the command work seamlessly.

So I was experimenting a little bit more and if I leave it hanging for 30 minutes to 1 hour it download the content eventually but still I would like to find a solution however I am not sure if the problem is on your side or with my ISP or on my machine 

Roman Zahradník June 11, 2020

The script first checks a list of IPv6 addresses and all of them time out but after it tries IPv4 it works here is the output of script that run successfully:


OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /home/romzah/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving "bitbucket.org" port 22
debug2: ssh_connect_direct
debug1: Connecting to bitbucket.org [2406:da00:ff00::22c3:9b0a] port 22.
debug1: connect to address 2406:da00:ff00::22c3:9b0a port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::22e9:9f55] port 22.
debug1: connect to address 2406:da00:ff00::22e9:9f55 port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::22cd:e0db] port 22.
debug1: connect to address 2406:da00:ff00::22cd:e0db port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::6b17:d1f5] port 22.
debug1: connect to address 2406:da00:ff00::6b17:d1f5 port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::34cc:ea4a] port 22.
debug1: connect to address 2406:da00:ff00::34cc:ea4a port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::3403:4be7] port 22.
debug1: connect to address 2406:da00:ff00::3403:4be7 port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::22c2:513] port 22.
debug1: connect to address 2406:da00:ff00::22c2:513 port 22: Connection timed out
debug1: Connecting to bitbucket.org [2406:da00:ff00::22c0:3470] port 22.
debug1: connect to address 2406:da00:ff00::22c0:3470 port 22: Connection timed out
debug1: Connecting to bitbucket.org [18.205.93.2] port 22.
debug1: Connection established.
Roman Zahradník June 11, 2020

Ok I have added line to etc hosts file according to the aforementioned output: 


18.205.93.2 bitbucket.org

However can you still please explain why would not IPv6 addresses not work?

Like # people like this
Jan Podmajersky June 23, 2020

Thank you @Roman Zahradník  I experienced the same issues.

All of sudden ssh to bitbucket stopped working. Adding ip address to `/etc/hosts` helped. I am on ubuntu 18.04 and not using any proxy/vpn.

I would be greatful if we could hear some explanation from atlassian, so we can prevent it in the future.

Thank you

loomanss July 6, 2020

Same issue here :

script for fix on windows (needs to run in cmd with admin-rights)

 

echo adding bitbucket to hosts file in Windows 10
cd C:\Windows\System32\drivers\etc\
echo 18.205.93.2 bitbucket.org>> hosts
Like Roma Bubyakin likes this
fagianijunior November 8, 2020

Same error here, I am using Arch Linux.
I would like to know why this happens? until 09/05/2020 it worked perfectly.

has my provider added some type of block?

 

Adding 18.205.93.2 bitbucket.org on /etc/hosts fix this error.

Like Roma Bubyakin likes this
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2020
Like Evgeny Kolyakov likes this
fagianijunior November 16, 2020

I do this workaround, and it works. But, I am not behind a firewall blocking IPV6 traffic.
But, is working.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events