Connection timed out when authenticating ssh.

Amandeep Rataul
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!
February 5, 2025

When authenticating ssh using this documentation; the following error is returned. 

I have tried everything but unable to proceed any further.

ssh_dispatch_run_fatal: Connection to 104.192.142.24 port 22: Operation timed out

 

 

1 answer

0 votes
Phil C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2025

Hi Amandeep,

Welcome to the community!

The error message:

ssh_dispatch_run_fatal: Connection to 104.192.142.24 port 22: Operation timed out

suggests that the SSH connection is being blocked or unable to reach Bitbucket Cloud Here are some troubleshooting steps you can try:

1.  Check Network Restrictions:

  • Are you behind a corporate firewall, VPN, or proxy that might be blocking SSH traffic?
  • Try running the following to check if port 22 is accessible:
  • telnet bitbucket.org 22 
  • nc -zv bitbucket.org 22

2. Try SSH over HTTPS (Port 443):

3. Verify SSH Key Setup

  • Run the following command to test your SSH connection:
  • ssh -T git@bitbucket.org

4. Check Local SSH Configuration:

  • Run the following for a detailed debug log:
  • ssh -vvv git@bitbucket.org
  • This may provide insights into the issue.

5. Restart SSH Agent:

  • Run the following commands:
  • eval "$(ssh-agent -s)"

    ssh-add ~/.ssh/<YOUR_PRIVATE_KEY_NAME>

  • Then, retry the SSH connection.

Hopefully theses step help you get to the bottom of the issue. 

Cheers,

- Phil

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events