Port 22 blocked? Can't use SSH? No problem.

By on December 17, 2010

Please note that we discontinued SSH on port 443 on June 15, 2011 after upgrading HAProxy and integrating with Stunnel. Please contact us if you’re still interested in this service and we’ll consider bringing it back.

Some of you out there are missing out on the awesomeness of using Mercurial over SSH, due to your university/workplace blocking port 22. With the recent introduction of HAProxy, which has protocol-level inspection of traffic, we now have the luxury of configuring a commonly open port to support SSH as well as what it was intended for.

So we’re doing that on port 443, aka SSL/HTTPS. What organization would possibly block that? ;-)

It works:

[cantor/jnoehr] /tmp > hg clone ssh://hg@bitbucket.org:443/jespern/django-piston -v
running ssh hg@bitbucket.org -p 443 “hg -R jespern/django-piston serve –stdio”
destination directory: django-piston
requesting all changes
adding changesets
adding manifests
adding file changes
added 279 changesets with 479 changes to 74 files
updating to branch default
And there you have it. SSH support over port 443.
  • Pingback: Tweets that mention Port 22 blocked? Can’t use SSH? No problem. – Bitbucket -- Topsy.com

  • http://twitter.com/denilsonsa Denilson Su00e1

    I checked HAProxy website, and it says that it does not support SSL.nnI’m confused… How do you use HAProxy together with SSL and HTTPS?

  • http://twitter.com/denilsonsa Denilson Sá

    I checked HAProxy website, and it says that it does not support SSL.

    I’m confused… How do you use HAProxy together with SSL and HTTPS?

  • http://twitter.com/denilsonsa Denilson Sá

    I checked HAProxy website, and it says that it does not support SSL.

    I’m confused… How do you use HAProxy together with SSL and HTTPS?

    • http://www.arandomblog.co.cc/ tuxme2

      It’s not using SSL, it’s just running on the port.

  • http://paulm.us/ Paul McLanahan

    This. Is. Awesome! I don’t have the need anymore, but did work at a place that blocked 22. This would have come in very handy, and I’m sure it will for many of my former coworkers. Thanks!

  • http://paulm.us/ Paul McLanahan

    This. Is. Awesome! I don’t have the need anymore, but did work at a place that blocked 22. This would have come in very handy, and I’m sure it will for many of my former coworkers. Thanks!

  • http://paulm.us/ Paul McLanahan

    This. Is. Awesome! I don’t have the need anymore, but did work at a place that blocked 22. This would have come in very handy, and I’m sure it will for many of my former coworkers. Thanks!

  • Shrawan Patel

    This post excellently highlights what the author is trying to communicate. Nonetheless, the article has been framed excellently well and all credits to the author. For more information on how to load balance your web servers, please visit ..nhttp://serverloadbalancing.biz/wordpressbiz/, nhttp://serverloadbalancing.info/wordpressinfo/

  • Mattias

    I would like if you open ssh on port 443 or some other than 22 again… any plans for that?

    • Charles McLaughlin

      Yes, we’re planning to re-introduce support for ssh on a non-standard port/hostname.  Follow this issue for updates:

      https://bitbucket.org/site/master/issue/3831

      • Mattias

        Great thanks!

      • Pranav Infosys

        do you have a timeline by when it would be released?

      • Bob Rao

        It has been over a year since this issue was raised, two since the previous service was discontinued. Any updates?

  • m0hd

    how to use this code

  • Ken

    What’s the suggested method to access bitbucket from a continuous integration server (Jenkins) behind a firewall that doesn’t allow port 22?

  • http://www.arandomblog.co.cc/ tuxme2

    It’s not using SSL, it’s just running on the port.

  • http://www.arandomblog.co.cc/ tuxme2

    It’s not using SSL, it’s just running on the port.