Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`ssh: connect to host ssh.dev.azure.com port 22: Connection timed out` error

Tags:

git

ssh

azure

In my home I created a SSH and cloned the repository by creating a SSH keys. ([email protected]:v3/ixo-vx/XXX/XXX.UI) After I reach office, when I initiate any of the git process, I am getting an error as :

ssh: connect to host ssh.dev.azure.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Since I am at office, what is the correct I need to do for this? In case if I create a new clone using https - it clones fine. there is no issue on new, as well https prompts git authentication popup. but ssh doesn't. How to fix this? what is the update I need to do in office?

Thanks in advance.

like image 624
user2024080 Avatar asked Aug 06 '19 05:08

user2024080


1 Answers

Just to post the comments as an answer for more references.

In this case, you can use telnet to validate the network connectivity from your local machine to the remote SSH host. As a result, you have a Connect failed on port 22 error, just check if the corporate firewall or local firewall on the local machine blocking the outbound traffic for port 22 to fix this issue.

like image 57
Nancy Xiong Avatar answered Sep 21 '22 01:09

Nancy Xiong