Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to add my ssh key

Deleted user May 15, 2018

Hello,

I keep receiving "Invalid key" when I try to add a new key to my personal bitbucket account (but it works in other contexts).

I suspect the problem here is the key type: ssh-dss. Is it possible?

This is what I'm trying to paste (one single line):

ssh-dss AAAAB3N...2104 more characters...UsRI= user@example.com

 

Any advices?

1 answer

1 vote
Mikael Sandberg
Community Champion
May 15, 2018

Hi Sergio,

Welcome to the community!

Bitbucket only supports four encryption algorithms for user keys: Ed25519, ECDSA, RSA, and DSA, so make sure your key was created using one of those.

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 15, 2018

DSA keys list themselves as "ssh-dss", so that isn't the issue here. However, the key length may be incompatible - Bitbucket limits DSA keys to 1024 bits, and will reject other sizes. (RSA keys can be 2048 bits or more; ECDSA keys can be 256, 384, or 521 bits; and Ed25519 keys are always 256 bits.)

Deleted user May 28, 2018

Looks like we found the cause... Why isn't this in the docs?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events