in edge cases it might not be the proxy that is causing the issues more like the DNS settings.
Test if DNS resolve works or not
nslookup archive.ubuntu.com
If correctly setup, you will see IP address, if broken you will see error message.
How to check DNS config (Ubuntu)
cat /etc/resolv.conf
# This file was automatically generated by WSL. T># [network]
# generateResolvConf = false
nameserver 8.8.8.8
nameserver 8.8.4.4
You can use these two Google DNS Servers for testing.
Try nslookup command again. If it works now, It´s been an DNS issue all along.
Test github connection
- SSH
ssh -T [email protected]
Output if successfull will look something like this
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
Hi <YourUsername>! You've successfully authenticated, but GitHub does not provide shell access.
- HTTPS
Try simply do clone e.g.
git clone https://github.com/octocat/Spoon-Knife
If issues are fixed, it will prompt for username and password.