Create
cancel
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

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,519 views 4 8
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