amitds1997 / remote-nvim.nvim

Remote development in Neovim 🔥
MIT License
602 stars 13 forks source link

Respond to prompt from remote system #166

Open NathanCummings opened 1 month ago

NathanCummings commented 1 month ago

A couple of the remote systems I work on prompt for either an extra password or for a 2-factor authentication code, which I currently can't respond to.

It would be nice if a box comes up to input the response to these prompt the same way it does for inputting your user password or ssh key passcode.

Unless I'm missing something, I don't see any other way to connect to these machines.

amitds1997 commented 5 days ago

Hi, do those prompts have a fixed pattern (e.g. "Enter your 2FA pin: "). If yes, you can update the ssh_config.ssh_prompts section with your prompt and you should get an input box.

See Advanced Configuration about what values would need to be set. If you have a question configuring it, let me know.