All the kindest time of the day.

I logged in to BitBucket, added an SSH key to my account. But! At the same time, he persistently writes to me:

Клонирование в «****»… Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

I have already executed ssh-add ~/.ssh/id_rsa I have already configured git config --global user.name и git config --global user.email

After executing the ssh -T git@bitbucket.org I get the answer:

 logged in as <mynickname>. You can use git or hg to connect to Bitbucket. Shell access is disabled. 

Only the last sentence confuses, but how to deal with it, I have no idea ... I am waiting for the help of experts ...

--updated--

After git -vT git@bitbucket.org, there is this line:

 Server host key: ssh-rsa SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A 

In this new key, which I added, begins with the characters:

 AAAAB3NzaC1yc2EAAAAD... 

I do not know if the direction of "digging" is correct ...

  • Comments are not intended for extended discussion; conversation moved to chat . - Nick Volynkin
  • @Air is not "like". Namely. - overtheman
  • Some kind of mysticism. You have to work with BitBucket via https, while GitHub over SSH with the same key works like a watch. - overtheman
  • I still haven't figured out what else could be the problem. Try, as Alexander advises in the chat, to regenerate the key and add a new public part to the bit-packet. - Nick Volynkin

0