Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-8885

ssh: connect to host bitbucket.org port 22: Connection timed out

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Hi,

      I am getting 'Connection timed out' error with 'ssh -Tv git@bitbucket.org'

      vlakkam@ubuntu:~$ ssh -Tv git@bitbucket.org
      OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: /etc/ssh/ssh_config line 19: Applying options for *
      debug1: Connecting to bitbucket.org [131.103.20.168] port 22.
      debug1: connect to address 131.103.20.168 port 22: Connection timed out
      ssh: connect to host bitbucket.org port 22: Connection timed out
      

      I have ssh keys generated and added public key in my bitbucket account(vlakkam). Followed all the steps given at: https://confluence.atlassian.com/display/BITBUCKET/Troubleshoot+SSH+Issues. But the issue still exists. Please look into this.

            [BCLOUD-8885] ssh: connect to host bitbucket.org port 22: Connection timed out

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3534559 ] New: JAC Suggestion Workflow 3 [ 3588922 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]

            Attachment 2253484432-SSH%20Issue.PNG has been added with description: Originally embedded in Bitbucket issue #8885 in site/master

            vaibhav_vm added a comment - Attachment 2253484432-SSH%20Issue.PNG has been added with description: Originally embedded in Bitbucket issue #8885 in site/master

            ns-tom added a comment -

            This may help those with problems: BCLOUD-9519

            ns-tom added a comment - This may help those with problems: BCLOUD-9519

            vaibhav_vm added a comment -

            Hi I am getting connection time out error while established connection to Port 22 using "ssh -v git@bitbucket.org" I have ssh keys generated and added public key in my bitbucket account. Followed all the steps given at: https://confluence.atlassian.com/display/BITBUCKET/Troubleshoot+SSH+Issues. But the issue still exists. Please look into this.

            vaibhav_vm added a comment - Hi I am getting connection time out error while established connection to Port 22 using "ssh -v git@bitbucket.org" I have ssh keys generated and added public key in my bitbucket account. Followed all the steps given at: https://confluence.atlassian.com/display/BITBUCKET/Troubleshoot+SSH+Issues . But the issue still exists. Please look into this.

            zandin23 added a comment -

            Hi
            I keep getting connect time out error as well (please see below)
            ssh: connect to host bitbucket.org port 22: Connection timed out
            fatal: Could not read from remote repository.
            Then I use this command
            iptables -t filter -A OUTPUT -p tcp --match multiport --dport 22,443,2222,3333 -j ACCEPT
            to add port 22 or 443 but it doesnt work please assist

            zandin23 added a comment - Hi I keep getting connect time out error as well (please see below) ssh: connect to host bitbucket.org port 22: Connection timed out fatal: Could not read from remote repository. Then I use this command iptables -t filter -A OUTPUT -p tcp --match multiport --dport 22,443,2222,3333 -j ACCEPT to add port 22 or 443 but it doesnt work please assist

            legacy-bitbucket-user added a comment -

            Where do I get a token?

            You can obtain a token a number of ways, depending on who you are trying to authenticate as:
            You - You can find your very own personal access token, which already has access to all the API's available to you (all scopes).
            A room notification - Room owners are able to create room notification tokens that can be used to send room notification messages, popular with light-weight, notification-only integrations.
            An add-on - If you are building a long-lived integration, you may want to register it as an add-on. This, among other things, allows you to access the API as an application, which usually means a generic administrator.
            Another user - As an add-on, you can retrieve the access token of another user (only with their consent!), usually via going through the OAuth 2 flow or, for native applications, by knowing their password.

            legacy-bitbucket-user added a comment - Where do I get a token? You can obtain a token a number of ways, depending on who you are trying to authenticate as: You - You can find your very own personal access token, which already has access to all the API's available to you (all scopes). A room notification - Room owners are able to create room notification tokens that can be used to send room notification messages, popular with light-weight, notification-only integrations. An add-on - If you are building a long-lived integration, you may want to register it as an add-on. This, among other things, allows you to access the API as an application, which usually means a generic administrator. Another user - As an add-on, you can retrieve the access token of another user (only with their consent!), usually via going through the OAuth 2 flow or, for native applications, by knowing their password.

            legacy-bitbucket-user added a comment -

            'Account' 画面内の 'Change username' オプションを利用すると、アカウント名を変更することができます。

            ユーザ名を変更すると、リポジトリに関連するすべてのURLも変更されるため、今までリポジトリを参照していたURLは無効になります。例えば、アカウント名を johnc から jcitizen に変えると、 repo リポジトリに対するURLは http://bitbucket.org/johnc/repo から http://bitbucket.org/jcitizen/repo に変わります。

            そのため、自分自身でもそうですし、リポジトリをクローンしたすべての人は、リポジトリの設定ファイル内の [paths] セクションを変更して、URLを変更する必要があります。

            スクリーンショット: 'Account' 画面の 'change username' オプション

            legacy-bitbucket-user added a comment - 'Account' 画面内の 'Change username' オプションを利用すると、アカウント名を変更することができます。 ユーザ名を変更すると、リポジトリに関連するすべてのURLも変更されるため、今までリポジトリを参照していたURLは無効になります。例えば、アカウント名を johnc から jcitizen に変えると、 repo リポジトリに対するURLは http://bitbucket.org/johnc/repo から http://bitbucket.org/jcitizen/repo に変わります。 そのため、自分自身でもそうですし、リポジトリをクローンしたすべての人は、リポジトリの設定ファイル内の [paths] セクションを変更して、URLを変更する必要があります。 スクリーンショット: 'Account' 画面の 'change username' オプション
            Brian Nguyen (Inactive) made changes -
            Status Original: FUTURE CONSIDERATION [ 11775 ] New: RESOLVED [ 5 ]

            Hi,

            I haven't heard back from you in a week so I'm closing this issue. However if you just haven't had the time to look into this, just reopen this issue when you are ready.

            Cheers,
            Brian

            Brian Nguyen (Inactive) added a comment - Hi, I haven't heard back from you in a week so I'm closing this issue. However if you just haven't had the time to look into this, just reopen this issue when you are ready. Cheers, Brian
            Brian Nguyen (Inactive) made changes -
            Status Original: GATHERING INTEREST [ 11772 ] New: FUTURE CONSIDERATION [ 11775 ]

              bnguyen Brian Nguyen (Inactive)
              vinay.lakkam vlakkam
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: