[Solved] fatal: unable to access 'https://dev.azure.com/xxx': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443
While working with a git repository in Azure and trying to update remotes or perform push/pull operations you may face an error saying,
fatal: unable to access 'https://dev.azure.com/xxx': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443
In this article, we are going to show some solutions to solve the error.
Solution 1:
The error seems to be related to IPv6. When you disable IPv6, the connection will work. You need to disable IPv6 for dev.azure.com by editing my hosts-file.
C:\Windows\System32\drivers\etc\hosts
# Workaround for git connection errors # fatal: unable to access 'https://dev.azure.com/MyOrg/my-project/_git/my-repo/': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443 # https://developercommunity.visualstudio.com/t/cannot-connect-to-devazurecom-nor-azuremicrosoftco/1189016 13.107.42.20 dev.azure.com
dev.azure.com's IPv4 address may change in the future. Please verify it and update as needed.
Solution 2:
- Open your command prompt and run
tracert www.dev.azure.com
- The prompt will show
Tracing route to l-0011.l-msedge.net [aaa.bbb.ccc.ddd]
- Next, in windows navigate to C:\Windows\System32\drivers\
- Open host file in Nodepad++ in run as Administrator mode
- Add the line and save
aaa.bbb.ccc.ddd dev.azure.com
- Now try to perform git operations
Thank you for reading the article. Hope this will solve your problem and don't hesitate to comment below if you face any problem.