Connection blocked because the server only allows public key authentication with SSH in Bitbucket Cloud

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。

要約

Unable to authenticate with SSH in Bitbucket Cloud and getting the error below:

Connection blocked because server only allows public key authentication. Please contact your network administrator.
fatal: Could not read from remote repository.

原因

  • The error usually happens if your server is behind the firewall and does not allow incoming traffic from the Bitbucket Cloud IPs. 
  • You can check if Bitbucket Cloud is reachable from your server by running the following commands:

    telnet bitbucket.org 22
    ssh -Tvvv git@bitbucket.org
    traceroute bitbucket.org (Linux) / tracert bitbucket.org (Windows)

ソリューション

  • Ensure the SSH key has been set up and added to your personal settings.
  • If your server is behind the firewall, ensure that default port 22 for SSH is opened.
  • Confirm if the server has any specific rules set for the outgoing traffic for port 22. If they allow only specific traffic, ensure that Bitbucket Cloud IPs are whitelisted for inbound traffic to Bitbucket.

  • If the issue persists, check with your system administrator to confirm if they have any network policy blocking the connection to Bitbucket Cloud.


最終更新日: 2024 年 1 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.