Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot authenticate via HTTP or SSH with managed account

Deleted user January 8, 2021

Hi,

I have a managed account (via Outlook) with which I am able to log in to bitbucket in my browser. I have created a repository but when I try to clone it, my password is not accepted: `fatal: Authentication failed for 'https://bitbucket.org/...`

I have added an SSH key to my account and that doesn't work either:
`git@bitbucket.org: Permission denied (publickey).`
(Note that the same key does work for git@github.com)

The only way I've got it to work was to create an App Password, but that is not an acceptable solution. I need to be able to authenticate via SSH.

This problem might be related to the following question, although SSH was not mentioned there: https://community.atlassian.com/t5/Bitbucket-questions/quot-remote-Invalid-username-or-password-amp-fatal/qaq-p/1076999

My question:
How can I get SSH authentication to work with my managed outlook account?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2021

Hi @[deleted] and welcome to the community!

If you use HTTPS, the account's password will not work for a managed account, and you will indeed need to use an app-password instead.

Since you want to use SSH, we can look into why this is not working for you.

Could you please share the verbose output of the following command from the machine where you set up SSH?

ssh -Tvvv git@bitbucket.org

This will show us verbose output and an indication of what may be going wrong.

Kind regards,
Theodora

Deleted user January 8, 2021

Hello Theodora,

I've run that command and the output can be found here: https://pastebin.com/9sGnqRm6
I have two ssh keys in my .ssh directory, which I would both expect to work as I have added them in the browser. (See screenshot) These are the keys that are shown in the logs on line 133 and 135 ("Offering public key: ")

Screenshot from 2021-01-08 16-41-00.png
(Offering public key:

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2021

Hi @[deleted] ,

Thank you for your reply and the output.

Looking at the verbose output, the line that indicates the issue is the following:

debug1: send_pubkey_test: no mutual signature algorithm

after the public key id_rsa is offered.

Are you using Fedora 33?

The same issue is reported by other users who upgraded to Fedora 33 as this version has some changes in OpenSSH connections.

To work around this, you can create a config file in the .ssh folder and add the following:

Host bitbucket.org
Hostname bitbucket.org
PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512

Another option would be to generate a new SSH key pair with encryption algorithm Ed25519 or ECDSA and use that instead.
The algorithm is specified with the -t option, so you can use e.g. the following command to generate the SSH key pair

ssh-keygen -t ecdsa

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,
Theodora

Deleted user January 8, 2021

Hi Theodora,

Yes, that was exactly the problem. I am indeed running Fedora 33.
Thank you for your quick response!

Kind regards,
Quinten

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2021

Good to hear, I'm glad that it is resolved!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events