SSH keys are not accepted

Hi , I have followed these steps to create new SSH keys (in Windows 10) in order to get access to a Bitbucket repository securely and my public key is also correctly added from repository-owner yet it doesn't give me the access. 

 

  • Created SSH keys using:   ssh-keygen 
  • Then it created both private and public keys. 
  • It does not create a .ssh in my HDD so I manually created it in C:Users/<my_account> and moved both keys into that folder
  • verified the public key while accessing it : cat ~/.ssh/mypublickey.pub
  • My public key is added into Bitbucket account Settings as in the it has been instructed. 
  • Finally, when I am trying clone the repository : git@bitbucket.org:blabla... .git
  • Following message is given : 

        Warning: Permanently added the RSA host key for IP address '104.192.143.3'          to the list of known hosts.
       Permission denied (publickey).

  • When I used the command - $  ssh -T git@bitbucket.org

          Message : Permission denied (publickey).

1 answer

0 vote

What do you get for `ssh-add -L`? Your key should be listed there. If it isn't, run `ssh-add` (same command, but without -L) to add it.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,034 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you