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
Related
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).
I can clone over https just fine but after I connect my ssh key, I keep getting the following error:
ssh: connect to host gitlab.example.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I've tried deleting and recreating the ssh key and adjusting the config port to 443 and nothing has worked.
If this is an on-premise GitLab installation (meaning not gitlab.com), chances are port 22 is should not be blocked.
Double-check that with:
curl -v telnet://gitlab.example.com:22
Switching to 443 would rather involve HTTPS. (github.com does have an SSH listener on port 443 or ssh.github.com, but that is probably not the case for your own GitLab server), unless your server is configured to do so on altssh.gitlab.example.com.
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].
I have generated ssh keys from my terminal and placed an entry in my SSH keys section in github.com.
After that, I am just trying to clone my repository, but I get the following error message :
git clone git#github.com:XYZXY/XXXXXXXXXX.git
Initialized empty Git repository in /home/XYZXY/.ssh/XXXXXXXXXXXXX/.git/
ssh: connect to host ssh.github.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
I tried this one too :
ssh -T git#github.com
ssh: connect to host ssh.github.com port 22: Connection refused
My question is :
1) Is source side blocking the connection ?
2) Is Target not allowing the connection ?
Try running this command for more information.
telnet ssh.github.com 22
You should see something like this.
~ $ telnet ssh.github.com 22
Trying 192.30.253.122...
Connected to ssh.github.com.
Escape character is '^]'.
SSH-2.0-libssh-0.7.0
If you do not, then something (possibly a firewall block?) is preventing you from accessing github.
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.