ohmyzsh/plugins/ssh/README.md
Roeniss Moon 1152d283fe
feat(ssh): Load hosts in other ssh config files
If the ~/.ssh/config contains `Include` directives, it'd be better
to parse the target config files if possible. This commit implements that.
The included config can also have Include directives, but it's not parsed
because of possibility of infinite loop, for now.
2025-03-22 01:05:50 +09:00

17 lines
542 B
Markdown

# ssh plugin
This plugin provides host completion based off of your `~/.ssh/config` file,
and adds some utility functions to work with SSH keys. If the `~/.ssh/config`
contains `Include` directives, the plugin also parse hosts in related files.
To use it, add `ssh` to the plugins array in your zshrc file:
```zsh
plugins=(... ssh)
```
## Functions
- `ssh_rmhkey`: remove host key from known hosts based on a host section name from `.ssh/config`.
- `ssh_load_key`: load SSH key into agent.
- `ssh_unload_key`: remove SSH key from agent.