Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

intermittent SSH hangs at 'expecting SSH2_MSG_KEX_ECDH_REPLY'


I have a Bitbucket repo set up to accept an ssh key from a vps. This has worked just fine so far (as of 2021-04-23), but today has started failing intermittently with the message

Connection closed by port 22

The result from

ssh -Tvv

is sometimes successful (which means the key setup is fine), and other times hangs at

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

for a while before closing the connection.

This only happens on this specific vps; not my home IPs, not my other vps, not my office computer, etc. Additionally, as I write this, Bitbucket reports everything's fine. 



Mirroring the repo to github works just fine, so this is not an SSH issue on the machine. It's something specifically to do with the Atlassian servers the repo is hosted on..

1 answer

I am, since yesterday, getting this exact error message, and the debug shows the same message as about.

Please delete this. I am unable to do so. This was not meant to be an answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

108 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you