Lesstep
Bitbucket Cloud and Data Center · Git remotes · Tested November 2, 2026

Bitbucket Git remote URLs: Cloud and Data Center

A Bitbucket repository can sit in a git remote in many shapes: HTTPS or SSH, Cloud or Data Center, with or without .git, with a user name, in another letter case. Most of them work for git. Which ones do, what each part means, and where tools go wrong, tested with git ls-remote on public repositories, signed out.

Bitbucket Cloud, every form tested

On November 2, 2026, on a public repository in Atlassian's workspace:

A repository that does not exist does not say "not found" to someone signed out. Git asks for a user name, as it does for a private repository (fatal: could not read Username for 'https://bitbucket.org' when prompts are off). With credentials, the same mistake gives "You may not have access to this repository or it no longer exists in this workspace".

Over SSH, the clone link the REST API gave on November 2 was git@ssh.bitbucket.org:{workspace}/{repository}.git, on Bitbucket's new SSH host. The older git@bitbucket.org:{workspace}/{repository}.git fails during brownouts from November 12, 2026 and stops for good on December 10 (Bitbucket SSH moves to ssh.bitbucket.org). On networks that block port 22, ssh://git@altssh.bitbucket.org:443/{workspace}/{repository}.git goes over port 443. SSH needs a key, so these forms were not tested signed out.

Bitbucket Data Center, every form tested

The same day, on a public repository of a Bitbucket Data Center 9.4 server:

Two shapes depend on the server. When its base URL has a path, such as https://example.com/bitbucket, every clone URL starts with it: https://example.com/bitbucket/scm/{project}/{repository}.git. A personal repository has ~{user} in place of the project: https://{server}/scm/~{user}/{repository}.git.

Over SSH the server hands out ssh://git@{server}:7999/{project}/{repository}.git. 7999 is Bitbucket's default SSH port. An administrator can choose another, and the link then shows that port.

Switching a remote

  1. See what the remote is now: git remote -v.
  2. Copy the new URL from the repository's Clone button, or write it from the lists above.
  3. Set it: git remote set-url origin {new URL}, then git fetch.

Nothing on the server changes. Your credential helper stores sign-ins per address, so the first fetch from a new address may ask you to sign in once (Git Credential Manager and Bitbucket).

Where tools go wrong

Bitbucket pull requests in IntelliJ IDEA

Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, reads the workspace or project and the repository from your git remote. On Cloud it reads the HTTPS and SSH forms Bitbucket hands out, ssh.bitbucket.org included (from version 1.0.53), and altssh.bitbucket.org. On Data Center it reads /scm/ HTTPS remotes of any server and SSH remotes on port 7999; for SSH on another port, add the server in Settings | Tools | Pull Request Inbox for Bitbucket. Names are matched without regard to letter case. It then lists the pull requests that wait for your review in an IDE tool window. The review inbox is free; creating, approving and merging pull requests are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

Bitbucket is a trademark of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian or JetBrains.

More: Bitbucket SSH moves to ssh.bitbucket.org · Bitbucket pull requests from the command line · "You may not have access to this repository" · 日本語