Forums

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

SSH to Bitbucket.org succeeds authentication but immediately closes connection

gmerendino
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.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events