Go up to Bitbucket an already created branch

Asked

Viewed 465 times

0

I have a project in Git Local and I want to go up to the bitbucket, but following the instructions:

Get Started with command line

Step 1: Switch to your Repository’s directory cd /path/to/your/Repo

Step 2: Connect your existing Repository to Bitbucket git remote add origin ssh://[email protected]/nutriex_project/checkoutnovo.git push -u origin master

The following error occurs:

$ git push -u origin master Warning: Permanently Added the RSA host key for IP address '104.192.143.1' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote Repository.

Please make sure you have the correct access Rights and the Repository exists.

gitBash

  • Following this tutorial from Locaweb, I had the same problem https://wiki.locaweb.com.br/ptbr/Configurando_Github_e_Bitbucket_na_Hospedagem_Linux 1º Defining SSH 2º Configuring in Bitbucket

2 answers

4

You need to get the public key from your computer, which is usually on

/home/<user>/.ssh/id_rsa.pub

and add it to your bitbucket settings.

In your Bitbucket account, go to

Bitbucket Settings > SSH Keys > Add Key

and, in the window that opens, you need to add the contents of the id_rsa.pub file

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.