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 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

28,060 views 26 12
Join discussion

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