WIn10 wsl2 :Ubuntu getting fatal: unable to access 'https: Failed to connect to github.com port 443: Connection timed out - windows-10

no matter which HTTPS i try to connect in this example i try to clone GitHub repository
I'm getting timeout error :
git clone https://github.com/libuv/libuv.git
Cloning into 'libuv'...
fatal: unable to access 'https://github.com/libuv/libuv.git/': Failed to connect to github.com port 443: Connection timed out
this was not in WSL1
i so allot of suggestions solution but nothing worked out .

Not sure if that applies to your situation. But I fix the issue by turning off mobile hotspot of my laptop.
I am using WSL2 Ubuntu distro and Microsoft Windows [Version 10.0.19041.867].

Related

how do i solve git clone issue return connection error 403

im on centos 8 want to git clone but suddenly not working and just return failed to connect to github.com port 443: Connection timed out.
try setting up the company proxy but still not working. So yeah, need help here.

Solving the a client side SSH connection error

Essentially I cannot connect to an SSH server anymore. Whenever I try to connect I get the following error:
ssh: connect to host HOSTNAME port 22: Connection refused
Note that I am able to connect from a different machine. Hence, the issue seems to be client side. Furthermore, I also cannot pull/push to git repositories that are cloned via ssh. Again, when pulling I get the following error:
ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
It seems like I somehow nuked my SSH installations/config files. I have reinstalled SSH but this did not fix the problem. Any ideas?
Note that you never "connect" to github.com directly (no interactive shell)
As mentioned here, "Connection refused" means
invalid IP address for github.com (manual entry in /etc/hosts or your resolver)
firewall along the way to github.com which blocks the ssh traffic (eg. local firewall or corporate firewall)
So is the other machine (where you do succeed) on the same network?
Check if the other machine SSH config file was not using ssh.gthub.com port 443 (instead of the default github.com:22, typically blocked in a corporate environment).

cannot connect to gitlab locally / browser (Virtual Box linux works just fine)

So I've had this problem before at work, then it was solved by getting a new computer (it was old).
Yesterday everything worked fine, this morning I try to surf to the company gitlab and couldn't connect. When I try to clone a repository to my local system I get a port 22: Connection timed out and when I try it with https I get port 443: Timed out
On chrome I get "ERR_CONNECTION_TIMED_OUT"
Edge tells me "There was a temporary DNS error. Try refreshing the page.
Error Code: INET_E_RESOURCE_NOT_FOUND"
I've pinged the ip and I get "Request timed out"
When I run $ ssh -vT git#github.com it gives me a bunch of lines but it ends in
debug1: No more authentication methods to try.
Permission denied (publickey).
If I run $ ssh -vT git#gitlab.company.com I just get
OpenSSH_7.5p1, OpenSSL 1.0.2k 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to gitlab.company.com [10.1.10.21] port 22.
cddebug1: connect to address 10.1.10.21 port 22: Connection timed out
ssh: connect to host gitlab.company.com port 22: Connection timed out
I've regenerated SSH keys and put them in https://gitlab.com/profile/keys (that I can acces, its just the gitlab.company.com that doesn't work).
I talked to IT at the company and they said nothing has changed, no new firewalls, no nothing.
I did install the Chrome Test Server to start making PWA but removed it after I discovered I had this gitlab problem again thinking it might have to do something with it. I rebooted my pc after the uninstall.
What more can I do? I'm on Windows 10 and run Ubuntu in Oracle VM virtual box (where I can connect just fine).
Thanks.
EDIT:
I've done a system restore to a couple of days ago, didn't help, I logged in a different windows account, still couldn't connect, I've changed network cable (using a coworker his "internet") still doesn't work. There must be something that I'm doing locally that messed things up.

svn: E000111: Unable to connect to a repository at URL

Please help me to rid out this problem, when I am trying to checkout, update, commit then I got these two errors.
svn: E000111: Unable to connect to a repository at URL
svn: E000111: Can't connect to host : Connection refused
Connection refused generally means there is no service listening on that port.
Either the svn daemon is down or the port number you're providing is wrong.
Is the svn server running?
run this on the server (linux)
sudo svnserve -d --foreground -r /path/to/repos/root

creation of local git repository fails

I am tyring to create a local git repository with this command on ubuntu 14.10, but it fails with error "you don't have correct access rights". Any idea what could be the problem?, is it a firewall issus?
$git clone -o khronos git#gitlab.khronos.org:vulkan/LoaderAndTools.git .
Cloning into '.'...
ssh: connect to host gitlab.khronos.org 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.
Thanks
The Connection timed out message indicates that your machine cannot connect to port 22.
As I can reach gitlab.khronos.org port 22 fine, my conclusion would be that it is a firewall in your local network that is the problem.

Resources