chipsenkbeil / chipsenkbeil/distant.nvim
cannot establish the connection with the remote machine
- Dominant language
- Lua
- Stars
- 1.4k
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
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 via `cargo install distant` and Path is also added tot he .bashrc file. I've also already defined `bin` path in the `distant.nvim` setup like this:
```lua
require('distant').setup {
["Remote_IP"] = {
distant = "/root/.cargo/bin/distant",
},
['*'] = require('distant.settings').chip_default(), {
ssh = {
idendity_files = { '~/.ssh/id_ed25519_39k' },
user = { 'root' },
}
}
}
```
However, when I run `:DistantLaunch ` 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 is `hachi` then it tries to login to `hachi@xxx.xxx.xxx.xxx` and `hachi` user does not exist on my remote machine.
So I run the command as `:DistantLaunch root@` because I've to access the root user. but it is not working either as I'm getting the following error:
```
Failed (1): Failed to connect to server
Caused by:
deadline has elapsed
```
Here I'm also attaching my a screenshot[

](url)
Also I don't understand why is it using my ssh keys when it is making the connection using `tcp` rather than `ssh`. Any comments on that?
Please help me resolving the issue. It'd be a huge help.
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.