ssh: connect to host port 22: Connection timed out

Issue #8885 resolved
Vinay Lakkam
created an issue


I am getting 'Connection timed out' error with 'ssh -Tv'

vlakkam@ubuntu:~$ ssh -Tv
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 [] port 22.
debug1: connect to address port 22: Connection timed out
ssh: connect to host 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: But the issue still exists. Please look into this.

Comments (9)

  1. Brian Nguyen


    It is possible that there is a firewall blocking access to our networks on port 22. If so you should contact your network administrator to request access. Take a look at this page ( for more details.

    Alternatively, you can try accessing Bitbucket via port 443.

    Cheers, Brian

  2. Brian Nguyen


    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

  3. Anonymous

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

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

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

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

  4. Anonymous

    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.

  5. Zandile

    Hi I keep getting connect time out error as well (please see below) ssh: connect to host 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

  6. Log in to comment