-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot establish the connection with the remote machine #94
Comments
If you do If you are getting a timeout or connection refused, this is most likely because the distant server has bound to a port that is not exposed to the Internet. You would need to specify the port that you want the server to listen on via Alternatively, you can run distant server listen --daemon --host any --port 8080
[distant server detached, pid = 50656]
distant://:59ffb73c29a06c2875ee67cb9af2dda0e07486861a7261a5bbc0da32eb8f6317@0.0.0.0:8080 From there, just replace the
|
Thanks chip for your detailed response. |
That was just an arbitrary port, not something guaranteed to be open on your server. You could use something like https://canyouseeme.org/ to see if a port is open on a machine with an IP. |
Hi chip, |
Have you started the server manually on that machine and then tried using DistantConnect? If so, add logging to the server via |
yes I did create the server on the remote machine.
what can I do? |
You need to specify the file, not the directory. So work_himanshu/distant.log |
Also, I'd recommend using distant 0.20.0-alpha.4 |
If you are using the v2 branch, that's the version suppoted right now |
I'm unable to use the pre-built binary v0.20.0 on CentOS7 because I'm getting the following errors:
while using crate it is giving me v0.19.0 |
And after starting the server with the logs and tried to connect with my client. I'm getting the following logs:
I don't think client's request is being received by the server. |
Hi @chipsenkbeil , |
Hey there! Apologies, I'm on vacation out of the country, so I am not regularly checking issues right now. The v2 branch of the plugin currently requires I've had situations where the version of Linux is so old that the GLIBC version isn't compatible, and I switched to the pre-compiled musl version such as https://github.com/chipsenkbeil/distant/releases/download/v0.20.0-alpha.4/distant-linux64-musl-x86 |
Hi @chipsenkbeil, I am installing distant from source on ubuntu 1804. After finishing download distant with packer. I try to connect to remote server using following command "DistantLaunch my_server ssh.user=root" but terminal show the error "Failed (1): error: unrecognized subcommand 'client' |
@sangtq13 what version of distant and distant.nvim do you have? This sounds like you are using a version of distant that is too high for what the v0.2 branch supports. You can either switch to v0.3 and use |
@chipsenkbeil, I am using v0.2 in my current nvim. I install in packer with the following command: |
@chipsenkbeil, I switch distant to version 0.20.0-alpha.4 and this error will appear: Any idea for this problem bro. Thank you so much. |
@sangtq13 can you try running |
@chipsenkbeil, I use your command and this error appears: |
Ah, proxy isn't supported (yet)., so I don't believe this would work. Your intention is that you have to go through one machine running ssh to connect to a second machine that is only accessible from the first? What you can do is start distant manually on that second machine, and then create an ssh tunnel that you connect through. When I write up documentation for v0.3, I'll try to cover how to do that. |
@chipsenkbeil, yes bro. This is the case that I want to connect to remote. I am expecting it will be supported in v0.3 because I really want to use Vim in stead of VS code and I don't want to come back using vim script. Thank you for your detailed respose. I really appreciate that. |
@chipsenkbeil, How can I install v0.3 of distant?. In current, I am using following command with packer: |
Hi,
I'm using nvim 0.8.0 and installed
distant.nvim
via Packer on MacOS. I have a remote machine that is running on Contabo OS. I've installed distant binary viacargo install distant
and Path is also added tot he .bashrc file. I've also already definedbin
path in thedistant.nvim
setup like this:However, when I run
:DistantLaunch <IP>
then for some reason it tries to log in to a username that is defined in my local system For ex: my laptop's username ishachi
then it tries to login to[email protected]
andhachi
user does not exist on my remote machine.So I run the command as
:DistantLaunch root@<IP>
because I've to access the root user. but it is not working either as I'm getting the following error:Here I'm also attaching my a screenshot

Also I don't understand why is it using my ssh keys when it is making the connection using
tcp
rather thanssh
. Any comments on that?Please help me resolving the issue. It'd be a huge help.
Thanks
The text was updated successfully, but these errors were encountered: