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 votes

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
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

237 views 0 12
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