1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #9227 resolved

Connection refused

sakib shaikh
created an issue

I get following error when try to pull

ssh: connect to host bitbucket.org port 22: Connection refused fatal: The remote end hung up unexpectedly

Comments (11)

  1. Erik van Zijst staff

    Can you be a little more specific?

    Can you give me the full output of:

    $ nslookup bitbucket.org
    $ traceroute bitbucket.org
    $ telnet bitbucket.org 22
    $ ssh -Tv git@bitbucket.org
    
  2. sakib shaikh reporter

    nslookup bitbucket.org Server: 172.29.64.98 Address: 172.29.64.98#53

    Non-authoritative answer: Name: bitbucket.org Address: 131.103.20.167 Name: bitbucket.org Address: 131.103.20.168

    telnet bitbucket.org 22 Trying 131.103.20.168... Trying 131.103.20.167... telnet: Unable to connect to remote host: Connection refused

    ssh -Tv git@bitbucket.org OpenSSH_5.5p1 Debian-4ubuntu6, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to bitbucket.org [131.103.20.167] port 22. debug1: connect to address 131.103.20.167 port 22: Connection refused debug1: Connecting to bitbucket.org [131.103.20.168] port 22. debug1: connect to address 131.103.20.168 port 22: Connection refused ssh: connect to host bitbucket.org port 22: Connection refused

    traceroute bitbucket.org traceroute to bitbucket.org (131.103.20.168), 30 hops max, 60 byte packets 1 172.29.66.1 (172.29.66.1) 0.491 ms 0.531 ms 0.520 ms 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * 21 * 22 * 23 * 24 * 25 * 26 * 27 * 28 * 29 * 30 * * *

  3. Erik van Zijst staff

    That output shows that your network appears to be firewalled. The router directly after your local network's default gateway is blocking (at least ICMP) traffic directed at our servers. Also, seeing connection refused errors, something (possibly a firewall) is explicitly refusing outbound connections to port 22.

    Given that you seem to be able to reach us at port 443 (our HTTPS-based website), I'd say you should have a chat to your local network's administrator. My guess is they'll be able to explain why you're not allowed to make SSH connections.

    What network are you on, by the way? Are you in the US?

  4. Rob Nash

    I'm having the same issue. I'm using public wifi, so I have no idea how the network is configured.

    Server: 10.1.15.10 Address: 10.1.15.10#53

    Non-authoritative answer: Name: bitbucket.org Address: 131.103.20.167 Name: bitbucket.org Address: 131.103.20.168

    traceroute: Warning: bitbucket.org has multiple addresses; using 131.103.20.167 traceroute to bitbucket.org (131.103.20.167), 64 hops max, 52 byte packets 1 192.168.117.193 (192.168.117.193) 3.767 ms !X * 2.198 ms !X

    Trying 131.103.20.167... telnet: connect to address 131.103.20.167: Connection refused Trying 131.103.20.168... telnet: connect to address 131.103.20.168: Connection refused telnet: Unable to connect to remote host

    OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: Connecting to bitbucket.org [131.103.20.167] port 22. debug1: connect to address 131.103.20.167 port 22: Connection refused debug1: Connecting to bitbucket.org [131.103.20.168] port 22. debug1: connect to address 131.103.20.168 port 22: Connection refused ssh: connect to host bitbucket.org port 22: Connection refused

    This problem resolved itself when I used a different network. Must have been something to do with the network config.

  5. Log in to comment