1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #9157 resolved

cannot push code to a new repository

Anil Philip
created an issue

I am new to git and created an account and tried to push my code to it (after creating new repository and commiting).

C:\Users\Me\workspace\MyProg>git push -u origin --all The authenticity of host 'bitbucket.org (131.103.20.167)' can't be established. RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added 'bitbucket.org,131.103.20.167' (RSA) to the list of k nown hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly

I tried again and got

ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly

Comments (32)

  1. Brodie Rao

    Hi Anil,

    It looks like our SSH server isn't recognizing your public key. Can you confirm that the public key you're using is the same one that you associated with your account?

  2. Oytun Tez

    Same here. I had successfully pushed code to multiple repositories less than an hour ago. None of our private repos are now reachable via push on SourceTree right now. ping and traceroute works fine. The issue is not only with push but with all of the commands related to reaching the git server.

    SourceTree warning: The requested URL returned error: 503 On traceroute, I started getting this after 11th step:

    11  * * *
    12  * * *
    13  * * *
    14  * * *
    15  * * *
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    
  3. Adrian Schnyder

    I struggle with the same issue. I worked step by step the document “https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git”

    On Step 6, Point 9, I get the response:

    The authenticity of host 'bitbucket.org (xxx.xxx.xxx.xxx)' can't be established. RSA key fingerprint is {my fingerprint} Are you sure you want to continue connecting (yes/no)?

    The problem is, I'm confronted with 3 different fingerprints: 1) Fingerprint after key generation 2) Fingerprint after command: ssh-add -l 3) Fingerprint send from bitbucket.org

  4. Log in to comment