Comments (12)
Thanks. Now it is loaded.
Then I put the ssh string and it asks for the password. I tried to insert the password, but nothing happened.
Actually it is not clear where the cursor should be to insert the password.
Note: my ssh string does not use the standard port 22, so I wrote something like:
ssh -p 6677 user@ipaddress
from remote-nvim.nvim.
Perhaps you are lazy loading your plugins? I see the plugin is installed but not loaded. Run Lazy load remote-nvim.nvim
and it should get loaded. You should be able to use the commands after.
If this is the case, I would suggest adding either lazy = false
, cmd = { ":RemoteStart" }
or event = { "CmdlineEnter" }
to the plugin configuration to make it load appropriately.
from remote-nvim.nvim.
I have another question. If neovim is already installed and configured on the remote machine, can I use that one already installed?
from remote-nvim.nvim.
There should be a popup that should allow you to enter the password 🤔 It should show up automatically. Maybe it is hidden behind this popup. But it should show up as shown in the README password based demo.
I have a PR out for building from source or else using a system Neovim in #93. I have been stretched a bit thin but I should be able to get it done soon.
from remote-nvim.nvim.
I got it. The plugin depends upon certain phrases in the output to detect that the ssh process is waiting for an input. You might want to add your prompt to the configuration. See ssh_configs.ssh_prompts
for more information in the README under Advanced Configuration. The added block should be something like
{ match = "Password:", type = "secret", value_type = "static", value = "" }
I'll make a PR to fix this. Thanks for reporting this.
from remote-nvim.nvim.
How / where to add the advanced configuration?
Do you have a full example for lazy?
from remote-nvim.nvim.
How / where to add the advanced configuration?
Do you have a full example for lazy?
For lazy.nvim
(the plugin manager), something like this should set you up (for a sample configuration I use, see this. Please do not copy the rest of the configuration as it is specific to my machine. You can add more options as per your configuration):
require("remote-nvim").setup({
ssh_config = {
ssh_prompts = { match = "Password:", type = "secret", value_type = "static", value = "" }
}
})
I have not worked with LazyVim, but it uses the same plugin manager so a similar configuration should work. You can also just do it like
{
"amitds1997/remote-nvim.nvim",
...rest of options
opts = {
ssh_config = {
ssh_prompts = { match = "Password:", type = "secret", value_type = "static", value = "" }}
from remote-nvim.nvim.
How / where to add the advanced configuration?
Do you have a full example for lazy?
There should be no need to add any new configuration to your own configuration after you pull in the latest version of the plugin that I released right now. Let me know if you still face issues.
from remote-nvim.nvim.
Cool. It works now with v0.2.4.
It shows this:
However on the remote machine I already have neovim installed with its own configuration. Can I just use that, without install it again? If so, how to do it?
from remote-nvim.nvim.
However on the remote machine I already have neovim installed with its own configuration. Can I just use that, without install it again? If so, how to do it?
I have a PR out for system Neovim option in #93. This should handle this scenario along with other niceties.
If you already have Neovim installed on the remote along with it's own configuration, you have already done 90% of the job this plugin does though. You can simply launch a remote session and then use a local client to connect to it after enabling port forwarding (that's what this plugin does too behind the scenes).
Something like
ssh -L 8080:8080 <host> nvim --headless --listen 0.0.0.0:8080
and
then run nvim --server=localhost:8080
(This might not be completely accurate but that's how it works)
from remote-nvim.nvim.
OK. I see. Thanks for all the information.
from remote-nvim.nvim.
I'll go ahead and close this issue since all requirements (except the option of building from source or re-using Neovim already installed on remote, which is being tracked by a different issue). If something is unresolved, feel free to comment and re-open the issue. Thanks!
from remote-nvim.nvim.
Related Issues (20)
- Consolidated UI to provide more configurability before launching a session
- Feature request: Add support for DevSpace HOT 1
- Can't attach to existing devpod workspace to neovim `nvim-v0.10.0-linux.appimage: No such file or directory` HOT 12
- Non-standard config path in local HOT 6
- Permissions denied opening user config file HOT 3
- Feature request: Ignore .git folder when copying nvim config to remote host HOT 2
- Yank/Paste Register Integrated with Clipboard HOT 3
- SCP'ing Config To Remote Fails HOT 11
- Nix breaks remote installation scripts HOT 2
- Choose specific port for connection
- Support explicitly specifying nvim version HOT 6
- Cannot install nvim appimage "required file not found" HOT 3
- Job failure when testing connection to remote HOT 2
- Encountered error E5560 when trying to connect to devcontainer workspace HOT 1
- Replace scp with rsync if available HOT 1
- Errors in stderr messes up 'echo $HOME' command's result
- Telescope Options
- Respond to prompt from remote system HOT 1
- Offline mode - send .tar.gz of pre-built binary HOT 1
- Setup fails if remote is using fish shell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remote-nvim.nvim.