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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Port 22 is blocked and hang forever

Edited

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

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

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.

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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,706 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you