Stand up an SSH redirect server for bitbucket.org (BB-3714)

suan avatarsuan created an issue

I'm behind a corporate firewall which has port 22 blocked. I'm able to push/pull from my bitbucket repos using https, but its a real pain having to enter my password each time.

The way github addressed this was superb. They set up an ssh.github.com server which listens on port 443 and sets up the connection accordingly so that I can just enter

Host github.com
User yeosuanaik@gmail.com
Port 443
Hostname ssh.github.com

into my .ssh/config and it just works. Could bitbucket please do something similar? I'm sure many would appreciate it.

Comments (135)

  1. Dmitry Krasilnikov

    Ok then. I installed sslh, but as I understood this is a server-side thing and it has nothing to do with my problem about corporate firewall, because I don't have any permissions to change something on the server-side.

  2. Scott Zeid

    Well my comment was really directed towards Atlassian, although you could set it up on your home computer or some other machine that has an unrestricted connection and use an SSH proxy to access Bitbucket.

  3. Dmitry Krasilnikov

    Maybe it was my fault that I hadn't understood to whom your answer was addressed. Yes, it's possible solution to install sslh on home server, also, with server at home it is possible to use just ssh's port forwarding, sometime ago I used this approach, but I don't have server at home anymore.

  4. Rocaton

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

  5. Ilya Orlov

    Yeah, if you do not care for your password to be stored as plain text.

    For paswordless interaction only reasonable way to go is via ssh certificates. And this, again, requires ssh access.

  6. Anonymous

    Same problem here... small team, all wondering how to get SSH working behind our firewall...

  7. Bill Stetson

    It would be nice to set it up to listen on a port of your choosing, I use a custom ssh port for my home server, and don't want to have to change my port settings/pass port flags every time I switch hosts

  8. Ashwin Murali

    Please bring back this feature! Working from behind a firewall is always a pain! and 21 / 22 are some of the first ports to be banned!

    Accessing a bitbucket repo via SSH + SSL would be lovely!

  9. Charles McLaughlin

    Hello all,

    We setup a new host/port combination to allow Git and Mercurial over SSH to bypass restrictive firewalls.

    Host: altssh.bitbucket.org

    Port: 443

    Our documentation has also been updated to reflect this change.

    Regards,

    Charles

  10. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.