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
4,359,742
Community Members
 
Community Events
168
Community Groups

Connection reset by 104.192.141.1 port 22

Hi team!

 

Having followed this guide

https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/

I seem to have setup all the keys needed, but this command

$ ssh -Tv git@bitbucket.org

gives me the following:

OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to bitbucket.org [104.192.141.1] port 22.
debug1: Connection established.
debug1: identity file /c/Users/myDumbUserName/.ssh/id_rsa type 0
debug1: identity file /c/Users/myDumbUserName/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_dsa type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_xmss type -1
debug1: identity file /c/Users/myDumbUserName/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.8
kex_exchange_identification: read: Connection reset by peer
Connection reset by 104.192.141.1 port 22

I have thoroughly followed this troubleshooter

https://confluence.atlassian.com/bitbucket/troubleshoot-ssh-issues-271943403.html

with no enlightenment. Any suggestions? Greg

1 answer

0 votes

Hi @Greg Saveliev and welcome to the community.

Is your computer behind a corporate firewall? The vast majority of TCP resets are due to misconfigured Access Control Lists and Firewalls, which might be rejecting traffic to Bitbucket's IP addresses. If the computer is behind a firewall, my first suggestion would be to ensure that our IPs are whitelisted and port 22 for SSH is open:

Another possible cause may be the higher MTU/MSS values in the packets we receive from your end, you can check the following knowledge base article which includes steps to determine if that's the case, solutions, and workarounds:

Another more rare cause may be due to Anycast Shift, you can read more details in the following community article:

You can try modifying the hosts file on your machine to direct traffic to Bitbucket's legacy IP addresses, which are not anycast to the internet:

18.205.93.2
18.205.93.0
18.205.93.1

and then run the ssh command (If this works, please note that we suggest it as a temporary workaround, as mentioned in the article I linked).

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
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,448 views 3 10
Read article

Atlassian Community Events