fatal: unable to access 'https://github.com/rogersce/cnpy.git/': Failed to connect to github.com port 443 after 21096 ms: Timed out
时间: 2023-09-20 17:07:49 浏览: 187
解决 github项目clone报错 Failed connect to github.com:443; Connection
This error message indicates that the Git client was unable to connect to the GitHub server at the specified URL. The error "Failed to connect to github.com port 443" suggests that the connection was blocked or refused by the server, possibly due to a network issue or a firewall blocking the connection. The "Timed out after 21096 ms" message implies that the connection attempt took too long and the server timed out waiting for a response.
To fix this issue, you can try the following:
1. Check your internet connection: Ensure that your internet connection is stable and working properly.
2. Check your firewall settings: If you have a firewall enabled, make sure that it is not blocking the connection to GitHub. You may need to add an exception for Git in your firewall settings.
3. Try a different network: If the issue persists, try connecting from a different network, such as a different Wi-Fi network or a cellular data network.
4. Check if GitHub is down: Sometimes, GitHub may experience downtime or maintenance, causing connection issues. You can check the GitHub status page to see if there are any reported issues.
5. Use SSH instead of HTTPS: If you continue to have trouble connecting via HTTPS, you can try using SSH instead. You'll need to generate an SSH key and add it to your GitHub account. Then, you can use the SSH URL instead of the HTTPS URL to clone the repository.
阅读全文