Commit Graph

3 Commits

Author SHA1 Message Date
Riccardo Schirone 9895dd9d5e Fix known_hosts removal for hashed entries (#28)
Replace manual file parsing with ssh-keygen -R which properly handles
both hashed (|1|...) and unhashed entries. macOS and many Linux systems
use HashKnownHosts by default, making the previous implementation unable
to remove entries.

Changes:
- Use ssh-keygen -R for each hostname instead of parsing the file
- Detect successful removal via "updated" in stdout
- Backup files are now .old (ssh-keygen default) instead of .bak
- Bracketed entries ([host]:port) now require exact format

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:58:05 -05:00
dm a875f3d430 Rename tobcloud references to dropkit in tests (#29)
* Rename tobcloud references to dropkit in tests

Update test data and test method names to use the new project name.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Format test_ssh_config.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:57:55 -05:00
Dan Guido bc36073036 Initial commit 2026-01-29 21:53:58 -05:00