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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,380
Community Members
 
Community Events
176
Community Groups

I followed the instructions for "Set up SSH for Git on Windows", but it's broken

Edited

Set up SSH for Git on Windows: https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

  1. generate the key from the instructions, changing nothing.
  2. from the prompt `notepad ~/.ssh/id_rsa`
  3. ctrl-a (select all) copy
  4. paste
  5. click "Add Key"
  6. "That SSH Key is invalid."
  7. Remove the `-----BEGIN` and `-----END` header and footer
  8. click "Add Key"
  9. "That SSH Key is invalid."

The end result is this screenshot

------

------

This needs to be fixed if it's supposed to be official instruction.

2 answers

I have the same problem, my public key is 

 

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20201126"
AAAA data removed T7oQ==
---- END SSH2 PUBLIC KEY ----

 

I get "That SSH key is invalid."

What is saved to a file from Putty is different than what is in the window and what Bitbucket needs. It should be of this format.

ssh-rsa
AAAA data removed T7oQ==

0 votes
Mikael Sandberg Community Leader Oct 22, 2019

Make sure you copy all the characters in the .pub file, normally on Windows it adds a label at the end, that also needs to be included.

I modded the OP to include the process used to include the public key text.

Mikael Sandberg Community Leader Oct 22, 2019

The ssh-keygen generates two files, id_rsa and id_rsa.pub. You want to copy the content in id_rsa.pub into your profile in Bitbucket. So in step 2 your command should look like this instead:

 notepad ~/.ssh/id_rsa.pub

Like chip likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events