6026d7514b97ffff47253a89ec5ce2d315f56c00
sshrm
Remove an entry from ~/.ssh/known_hosts by host name or by line number.
Usage
sshrm [OPTION]... HOST|LINE
Options
-h,--helpShow help and exit.
Examples
Remove by host:
sshrm example.com
Remove by line number:
sshrm 12
Notes
- Line numbers must be positive integers.
- Extra arguments are rejected.
- The script edits
~/.ssh/known_hosts. - Keep a backup if you need to recover entries.
Languages
Shell
100%