Unable to clone Git repository, remote: Forbidden

Gaaf Geel
Contributor
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
Contributor
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2018

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

Like Iyakrivas likes this
Gaaf Geel
Contributor
December 1, 2018

I made a new key without it. 

Like Stephane Duval likes this
lalarukh17
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2019

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

yeaminrajeev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2019
Like # people like this
0 votes
Kamoliddin Chinaliev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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