Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Push - SSH error

annemminford
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 5, 2020

I have created a private / public key pair

I saved the private key on my pc

I added the public key to Bitbucket

I am getting :

 

$ git push -u origin master
Warning: Permanently added the RSA host key for IP address 'xxxxx' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

The repo does exist - so why isn't the SSH pair working?

 

Any ideas?

 

2 answers

0 votes
annemminford
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 5, 2020

Thank you for the response, I'll give all this a check over.

0 votes
CSMitch March 5, 2020

i would check  the key folder permissions and ssh eval stuff

ssh directory permissions should be 700 (drwx------).

The public key (. pub file) should be 644 (-rw-r--r--).

The private key (id_rsa) on the client host, and the

authorized_keys file on the server, should be 600 (-rw-------).

also try this  stuff --> eval `ssh-agent`

info here  https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events