Skip to content

SSH test fails for Bitbucket ssh key despite successful authentication #174

@javerberg

Description

@javerberg

Bug Description

When testing an SSH key against Bitbucket, the connection succeeds but the UI reports failure with the message: "Authentication failed. The key may not be authorized on this host."

Steps to Reproduce

  1. Go to Settings > Git Credentials
  2. Add an SSH key for Bitbucket
  3. Click "Test Connection"
  4. Test reports failure despite successful authentication

Expected Behavior

Test should report success when authentication succeeds.

Root Cause

Bitbucket's SSH server returns a different success message than GitHub:

  • Bitbucket: Authenticated to bitbucket.org ([x.x.x.x]:22) using "publickey".
  • The backend only checks for successfully authenticated, You've successfully authenticated, Welcome to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions