Skip to content

Commit

Permalink
feat(ssh): support passphrase input in remote neovim (#104)
Browse files Browse the repository at this point in the history
Closes #103
  • Loading branch information
amitds1997 committed Apr 14, 2024
1 parent 843b858 commit fde45f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/remote-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ M.default_opts = {
scp_binary = "scp",
ssh_config_file_paths = { "$HOME/.ssh/config" },
ssh_prompts = {
{
{ -- Handle default password style on Linux/macOS
match = "password:",
type = "secret",
value_type = "static",
value = "",
},
{
{ -- Handle unknown host upon SSH
match = "continue connecting (yes/no/[fingerprint])?",
type = "plain",
value_type = "static",
Expand All @@ -105,6 +105,12 @@ M.default_opts = {
value_type = "static",
value = "",
},
{ -- Handle SSH-key with passphrases
match = "Enter passphrase",
type = "secret",
value_type = "static",
value = "",
},
},
},
remote = {
Expand Down

0 comments on commit fde45f9

Please sign in to comment.