https://github.com/johanmeiring/fish-remove_host
Plugin for Fish shell that removes host keys from known_hosts
https://github.com/johanmeiring/fish-remove_host
Last synced: 9 months ago
JSON representation
Plugin for Fish shell that removes host keys from known_hosts
- Host: GitHub
- URL: https://github.com/johanmeiring/fish-remove_host
- Owner: johanmeiring
- License: mit
- Created: 2019-10-25T05:44:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T06:39:47.000Z (about 6 years ago)
- Last Synced: 2025-03-26T10:44:56.591Z (10 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fish-remove_host
A plugin for [Oh My Fish](https://www.github.com/oh-my-fish/oh-my-fish). It installs a function `remove_host`, which can be used to remove host keys from `~/.ssh/known_hosts` based on line number. This is particularly useful in cloud hosting when you might be rotating server instances often and the same IP addresses tend to be re-used, but obviously with different host SSH keys.
[](https://github.com/johanmeiring/awesomeminer-go-sdk/blob/master/LICENSE)
[](https://fishshell.com)
[](https://www.github.com/oh-my-fish/oh-my-fish)
## Prerequisites
Usage of this plugin and function depends on GNU sed being installed. This should usually already be the case on most Linux distros. On macOS you will need to install it via `brew install gnu-sed`, which installs the `gsed` binary.
## Install
```fish
$ omf install https://github.com/johanmeiring/fish-remove_host
...
```
## Usage
```fish
$ remove_host
$
```
## License
MIT. See the LICENSE file for more details.
## Donations
Donations are very welcome, and can be made to the following addresses:
- BTC: 1AWHJcUBha35FnuuWat9urRW2FNc4ftztv
- ETH: 0xAF1Aac4c40446F4C46e55614F14d9b32d712ECBc