chipsenkbeil / chipsenkbeil/distant.nvim

cannot establish the connection with the remote machine

Open
#94 23 comments 0 reactions 0 assignees View on GitHub
bug question
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[
![Screenshot 2023-04-26 at 1 23 56 AM](https://user-images.githubusercontent.com/60652310/234388581-373cd479-0ec2-4148-8e66-f7dcd6ca4d7b.png)
](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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.