Skip to content

Comments

feat: add SSH known hosts prompt handling#55

Merged
nosduco merged 3 commits intonosduco:mainfrom
Chayanon-Ninyawee:ssh-known-hosts-prompt
Aug 7, 2025
Merged

feat: add SSH known hosts prompt handling#55
nosduco merged 3 commits intonosduco:mainfrom
Chayanon-Ninyawee:ssh-known-hosts-prompt

Conversation

@Chayanon-Ninyawee
Copy link
Contributor

Add SSH known hosts prompt handling and user confirmation

Check for existing host keys, show fingerprint prompt, and add keys on approval

If the host is not in the known-hosts it will show:

The authenticity of host '192.168.239.10' can't be established.
256 SHA256:YULIwdfuCLci7fxALmON53lsJT3bC7CemoE/OY/BcZc 192.168.239.10 (ED25519)
Add this host key to /home/garfieldcmix/.ssh/known_hosts?
 y/n:

Also added:

connections = {
  ...
  ssh_known_hosts = vim.fn.expand "$HOME" .. "/.ssh/known_hosts",
  ...
},

@nosduco
Copy link
Owner

nosduco commented Aug 5, 2025

Awesome stuff! Would you mind updating the README to include those changes? Or I can go ahead and do that. Thanks again for your contributions!

@nosduco nosduco merged commit 7ba04a9 into nosduco:main Aug 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants