SSH connection - public key permission denied (Windows 7, Bitvise SSH client)

OS: Windows 7

Client: Bitvise SSH client newest version availlable


What I am trying to do:

Push my work to the production branch of bitbucket through the SSH link/remote option so not the HTTPS option.


Result/Error message:

"Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists."


What I have tried to resolve this issue:

Followed many tutorials on how to resolve the public key denied problem but none of them have worked so far.

My public and private key have been generated with the puTTYgen and saved in my documents. My public key is saved into my bitbucket account.


I have tried to resolve this issue for ages but I still can't get it to work, if any of you could give me tips or tricks on how to solve this I will be verry thankful.


1 answer

0 vote

Did you add your public key in Bitbucket and grant is the required permissions?

See for more details.

It has been solved now, the initial method in the ssh client was set to password only, this has to be password and public key. Also I had to add my key to pageant and enable authentication agent forwarding in the terminal tab.

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...

1,757 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