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

This widget could not be displayed.

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

See https://confluence.atlassian.com/bitbucketserver/ssh-user-keys-for-personal-use-776639793.html#SSHuserkeysforpersonaluse-useSSH 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 Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,342 views 8 11
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