Forums

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

I have set ssh-public-key-authentication,but it's still permission denied?

vicentkarl April 14, 2018

I use to be able to push code and set up a new git,while now I can't push code to my new git,it;s said that I have no permission

 

Snipaste_2018-04-14_23-39-17.png

 

 

Snipaste_2018-04-14_23-40-14.png

1 answer

1 vote
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2018

Hi Vicentkarl! You can run this command from your terminal, this will attempt to create a connection to Bitbucket for Git and tell you which username is using:

ssh -Tv git@bitbucket.org

You can also run also this command to see which key is your SSH agent currently offering:

ssh-add -L

If your key is not listed, you can add it by:

ssh-add ~/.ssh/identity

Note that with ssh-agent management Bitbucket uses the first key in the list. If you are still having problems, try removing all but the identity you want to connect with, to do this:

ssh-add -d ~/.ssh/identity

This is explained at Troubleshooting SSH issues

Let us know how it goes!

Ana

vicentkarl May 6, 2018

thanks a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events