Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Port 22 is blocked and hang forever

Javad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 6, 2020

Hello,

I am using a VirtualBox , host os: windows 10, Virtual OS: Linux

 

$ssh -v git@bitbucket.org

OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to bitbucket.org [2406:da00:ff00::22e9:9f55] port 22.

 

hangs forever, so this is why push hangs forever for me.  I added my key to my setting. The repo is not in my account though and I am contributing to my colleagues repo.

Please let me know what to do. 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2020

Hello @Javad,

Welcome to the Community!

It looks like your ISP or intermediate network device doesn't support IPv6. SSH prefers IPv6 if it got AAAA record from DNS server. Can you try forcing SSH to use IPv4, like this:

ssh -v -4 git@bitbucket.org

Hope this helps.

Cheers,
Daniil

Javad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 6, 2020

Thank you @Daniil Penkin 

I tried and this is the return

 

 

ssh -v -4 git@bitbucket.org

OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to bitbucket.org [18.205.93.2] port 22.
debug1: connect to address 18.205.93.2 port 22: No route to host
debug1: Connecting to bitbucket.org [18.205.93.0] port 22.
debug1: connect to address 18.205.93.0 port 22: No route to host
debug1: Connecting to bitbucket.org [18.205.93.1] port 22.
debug1: connect to address 18.205.93.1 port 22: No route to host
ssh: connect to host bitbucket.org port 22: No route to host

 

Now I tried 

git push -u origin <mybranch>  

Hangs forever again

 

Tried agian

ssh -v git@bitbucket.org

says:

OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to bitbucket.org [2406:da00:ff00::22c0:3470] port 22.

 

hangs again

Please help.

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 7, 2020

Hm, so DNS resolves the hostname, but then there's no route. Can you please try few things to help identifying the root cause:

  • Can you access Bitbucket from the host Windows machine?
  • Can you access other websites from the VM?
  • Can you try using altssh.bitbucket.org over port 443, like this:
    ssh://git@altssh.bitbucket.org:443/<account_name>/<repo_name>

Let me know what you find out.

Cheers,
Daniil

Hari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2020

How to resolve this issue in Cloud-bitbucket, can some please help ?

debug1: Connecting to bitbucket.org [18.205.93.2] port 22.

log:

ssh -vT git@bitbucket.org

OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g  1 Mar 2016

debug1: Reading configuration data /home/ubuntu/.ssh/config

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 19: Applying options for *

debug1: Connecting to bitbucket.org [18.205.xx.0] port 22.

debug1: connect to address 18.205.93.0 port 22: Connection timed out

debug1: Connecting to bitbucket.org [18.205.xx.2] port 22.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events