You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
When trying to initialize a new repo and walk through the instructions on the bitbucket page after opening the terminal through sourcetree.
i continue to get the following error:
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
I have a publickey made through rsa_id and saved to repo settings. I have read/Write permissions and my global git settings are set.
However, I can still not initialize the repo. One thing is that the port number from bitbucket server tells me a different port number than what is in the URL, I have tried both and neither work.
I'm started seeing this issue today, this wasn't happening yesterday. :/
➜ gpsh (alias to push the current branch to remote)
kex_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
My ssh key is correctly configured, `ssh-add -L` list the right key.
```
➜ ssh -Tv git@bitbucket.org
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/username/.ssh/config
debug1: /Users/username/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to bitbucket.org port 22.
debug1: Connection established.
debug1: identity file /Users/username/.ssh/id_rsa type 0
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
kex_exchange_identification: Connection closed by remote host
```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue.
@AtlassianSupport, what is going on? People have to upload their code. This is frustrating.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, having the same issue and I found this comment, and I cannot recall the time when I posted it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue here.. I get the following output
$ ssh -Tv git@bitbucket.org
OpenSSH_8.2p1, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to bitbucket.org [18.205.93.2] port 22.
debug1: Connection established.
debug1: identity file /c/Users/*snip*/.ssh/id_rsa type 0
debug1: identity file /c/Users/*snip*/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_dsa type -1
debug1: identity file /c/Users/*snip*/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/*snip*/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/*snip*/.ssh/id_xmss type -1
debug1: identity file /c/Users/*snip*/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2
kex_exchange_identification: Connection closed by remote host
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I started having this problem on my mac host after adding a new ssh key for a virtualbox ubuntu guest.
My guess is that they are related. No idea how to fix it yet.
Edit: bitbucket.org is down, so this is probably a server-side issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here.
Probably its a temporary problem, because nothing changed in my machine, key is here, all good... well, I will wait a little and see what happens next.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any further update on this? I'm having the same issue.
Thanks,
-darrel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
Is your SSH correctly added to your SSH agent? You can check that by running the following command on your terminal:
ssh-add -L
If your key is not there, you can add it by doing:
ssh-add <path_to_key>
If your key is there, you can check if is associated to the right Bitbucket account by running:
ssh -Tv git@bitbucket.org
For troubleshooting purposes, have you tried doing this without Sourcetree in the middle?
Let us know!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ana,
I do have the key. Are there any other suggestions?
Thank you!
Luiza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.