Skip to content

Bitbucket reports no remote repository when using SSH host alias #1563

@SimpleProgrammingAU

Description

@SimpleProgrammingAU

Describe the bug
While authenticated in the Atlassian plugin, the Bitbucket Pull Requests tab shows no repositories. This only occurred after updating the SSH host name in my .ssh/config file to a custom alias due to having two Bitbucket accounts (work vs personal) to use.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure you are using SSH for remote git operations
  2. If one doesn't exist, create a config file in your .ssh folder with an alias for your Bitbucket host name. E.g.
Host bitbucket.alias
  HostName bitbucket.org
  User git
  AddKeysToAgent yes
  IdentityFile ~/.ssh/bitbucket_work
  IdentitiesOnly yes
  1. Update your git remote for your project to point to the new alias. E.g.
git remote set-url origin git@bitbucket.alias:workspace/repo.git
  1. Start VS Code, wait for Atlassian extension to load, go to Atlassian extension and look at the Bitbucket Pull Request tab - it will say there is "No Bitbucket repositories found..."

Expected behavior
Features to submit pull requests to remain available following the update to use a host alias

Screenshots

Image Image

Environment and Version:

  • Atlassian Plugin Version v4.0.18
  • Visual Studio Code Version v1.108.2
  • Is this a local or cloud environment? Local
  • If Local, OS: Nobara Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions