Forums

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

SSH to Bitbucket.org succeeds authentication but immediately closes connection

gmerendino
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!
May 11, 2026

I'm trying to test my SSH connection to Bitbucket, but the session closes right after authentication.

Here's the relevant output:

text
Authenticated to bitbucket.org ([185.166.143.49]:22) using "publickey".
debug1: channel 0: free: client-session, nchannels 1
Connection to bitbucket.org closed by remote host.
debug1: Exit status -1

The key is accepted, no explicit error is shown, but the connection is terminated by the remote host.
This happens even with ssh -Tv git@bitbucket.org.

Any idea what could cause this?
Thanks.

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2026

Hi @gmerendino 

May you please try a different network connection (for example, a mobile hotspot) and let me know if you get the same error?

Typically, a disconnect indicates a problem with your network connection.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events