lissh discover - Host Discovery
Discover SSH hosts from your system configuration files.
Usage
lissh discover [command]
Commands
run
Scan known_hosts and SSH config to discover hosts.
lissh discover run
lissh discover run --dry-run # Preview without adding
lissh discover run --all # Show already known hosts too
review
Interactively review and label discovered hosts.
lissh discover review
For each host you can:
aSet an alias
nAdd notes
kAssociate an SSH key
iMark as inactive
sSkip
qQuit
users
Infer usernames from shell history and update host records.
lissh discover users
lissh discover users --dry-run # Preview without making changes
This scans ~/.bash_history and ~/.zsh_history for SSH commands like:
ssh user@hostname
ssh -l user hostname
ssh -p 2222 hostname
Matching hosts without a user set will be updated.
Sources
Hosts can be discovered from:
~/.ssh/known_hosts- Known hosts file~/.ssh/config- SSH config file (Host entries)
Adding Hosts Manually
While discovery finds hosts automatically, you can also:
- Edit
~/.ssh/configand runlissh discover run - Direct SSH to a new host (it gets added to known_hosts)
- Run discovery again