Unable to clone Git repository, remote: Forbidden

Gaaf Geel September 18, 2018

 

Cloning for my first repo with HTTPS gives me this error:

$ git clone https://{username}@bitbucket.org/{username}/test.git
Cloning into 'test'...
remote: Forbidden
fatal: unable to access 'https://{username}@Bitbucket.org/{username}/test.git/': The requested URL returned error: 403

When trying to clone via SSH it looks if it works, but then I need to type the password everytime, I thought that with SSH it is not needed every time?

Help needed for a BitBucket newbee ;-)

Thnx,

 

Maurice

 

 

2 answers

1 accepted

8 votes
Answer accepted
Gaaf Geel September 19, 2018

Well it looks like I made the stupid "mistake" of typing a pasphrase during the creation of my SSH key on my computer. This was not necessary!

Answering my own question is for when other people make the same "error" ;-) 

Alex B December 1, 2018

Thanks but how do you solve it then ? remove passphrase ?

Like Iyakrivas likes this
Gaaf Geel December 1, 2018

I made a new key without it. 

Like Stephane Duval likes this
lalarukh17 March 18, 2019

I have  the same problem though... its remote : forbidden and error 403 I have log in but its not cloning my  repository, thanks. 

Kristi Heiman June 25, 2019

What is the process for making a new key? Thank you!

Like # people like this
0 votes
Kamoliddin Chinaliev January 21, 2022

Me also having this silly problem. When trying to clone with https it is returning me

remote: You'll need to authenticate with a valid app password. You can create an app password from your account at https://bitbucket.org/account/admin/app-passwords

fatal: unable to access 'https://bitbucket.org/<reponame>': The requested URL returned error: 403

But with ssh it is ok.
What's wrong, still i could not get it!

oybek July 20, 2022

You have to create app password according to the bitbucket from march, 2022. I will share the links for it. https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/. After creating the app password, make sure to keep copy the password it generates. when you clone, or make pull request, you have to use that password for one time

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events