Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,450 views 3 10
Read article

Atlassian Community Events