Pick a host from your ~/.ssh/config in a grouped menu, then connect with OpenSSH.
Your config. Your keys. Your SSH client. No second host inventory and no Python runtime.
The demo records the real binary with fictional config files and a fake ssh that prints its arguments. It makes no network connection.
Watch the MP4 or reproduce the recording.
| Without a picker | With ssh-connector |
|---|---|
| Open your SSH config and included files to find an alias. | See aliases grouped by the file they come from. |
Remember the alias, then type ssh <host>. |
Pick a number or name, or filter the menu first. |
| Maintain keys, users, and jump routes in OpenSSH. | Keep doing exactly that. Only host selection changes. |
It is a small menu in front of OpenSSH, not a new SSH client.
brew install KKamJi98/tap/ssh-connectorcargo install --locked kkamji-ssh-connectorThe crate is kkamji-ssh-connector; the command is ssh-connector.
The crate named ssh-connector belongs to a different project. If you installed that crate with Cargo, Cargo will refuse to overwrite its same-named binary. Uninstall the unrelated crate first or use Homebrew.
Download an archive from GitHub Releases, extract it, and put ssh-connector (or ssh-connector.exe) on your PATH.
| Platform | Archive suffix |
|---|---|
| macOS, Apple silicon | aarch64-apple-darwin.tar.gz |
| macOS, Intel | x86_64-apple-darwin.tar.gz |
| Linux, x86_64 | x86_64-unknown-linux-musl.tar.gz |
| Linux, arm64 | aarch64-unknown-linux-musl.tar.gz |
| Windows, x86_64 | x86_64-pc-windows-msvc.zip |
Archive names start with ssh-connector-<tag>-. Each has a .sha256 file and build provenance. For example, verify a downloaded archive with:
# Replace <tag> and <target> with the values in your downloaded file name.
gh attestation verify ssh-connector-<tag>-<target>.tar.gz --repo KKamJi98/ssh-connectorOpenSSH must be installed and ssh must be on PATH. On Windows, enable the OpenSSH Client optional feature. The default config is %USERPROFILE%\.ssh\config.
Moving from the old PyPI package
Versions through 0.3.1 were Python packages. New releases are Rust binaries; 0.3.1 remains on PyPI.
Remove the old tool with the installer you used, then install the new binary:
uv tool uninstall ssh-connector
# If you used pipx instead: pipx uninstall ssh-connector
brew install KKamJi98/tap/ssh-connectorTo go back, uninstall the Homebrew formula, then run uv tool install ssh-connector==0.3.1.
Run ssh-connector for the full grouped menu shown in the demo. Enter a number or host name to connect, f to filter, or q to quit.
The examples below use the same fictional fixture as the GIF. The output comes from the real binary. The connection example uses the explicitly labelled fake SSH client, not a real server.
ssh-connector web Main (1)
βββββββ€βββββββββ
β No. β Host β
βββββββΌβββββββββ’
β 1 β web-01 β
βββββββ§βββββββββ
lab (2)
βββββββ€βββββββββ
β No. β Host β
βββββββΌβββββββββ’
β 2 β web-02 β
β 3 β web-03 β
βββββββ§βββββββββ
The next line asks for a host number or name. Enter 2 to select web-02. Numbers refer to the current menu and change after filtering.
ssh-connector web-02Connecting to web-02...
[demo ssh] argv: <--> <web-02>
[demo ssh] Connected to a fictional host. No network used.
A case-insensitive exact match connects immediately. Any other query opens a substring-filtered menu.
With the real SSH client, this starts ssh -- web-02 and hands over the terminal.
ssh-connector --list webweb-01
web-02
web-03
Omit web to list all aliases, one per line, in menu order. --list does not connect.
ssh-connector -F ./ssh_config --list webweb-01
web-02
web-03
Here ./ssh_config contains the fixture's main config. Without --list, a connection also passes -F ./ssh_config to SSH. Relative Include paths still resolve from ~/.ssh, not from the alternate file's directory.
The picker reads aliases and never rewrites your config. The SSH child process inherits the terminal; OpenSSH handles authentication, keys, User, ProxyJump, and the connection itself.
Usage: ssh-connector [OPTIONS] [QUERY]
| Argument or option | Behavior |
|---|---|
[QUERY] |
Connect immediately if it matches a host name; otherwise open the filtered menu. |
--list |
Print host names in menu order, one per line, and exit. Honors QUERY. |
-F, --config <FILE> |
Read another config. Connections pass it to SSH as -F FILE. |
-h, --help |
Print help. |
-V, --version |
Print version. |
| Menu input | Behavior |
|---|---|
| Number or host name | Connect to a host in the displayed menu. Names are case-insensitive. |
f |
Ask for a substring filter, then show matching hosts. |
q or Ctrl-D |
Quit without connecting. |
| Ctrl-C | Interrupt and exit with 130. |
The tool returns SSH's exit code. A missing ssh command exits with 127.
- Not an SSH client. It starts the system
sshon PATH as a child process. Authentication, keys, and jump routes belong to OpenSSH. - Groups come from files, not comments. The main file is
Main; included files use their file names. Conflicting file names are labelled by path. - Names containing
jump(case-insensitive) move to a finalJUMP-HOSTStable with a source-group column.bastionis not a special name. - Names ending in
-ignoreor containinggithuborbitbucket(case-insensitive) are hidden. Wildcard/negated patterns and names starting with-are not listed. - The picker reads every
Include, even inside a conditionalHostorMatchblock. It does not implement OpenSSH's full conditional configuration semantics. Includesupports globs,~, and${VAR}.%tokens and~otheruserexpansion are not supported.- A host defined in two files can appear once in each group.
--listdeduplicates aliases. - Completion reads the default
~/.ssh/config, even when you pass-F. - Windows requires OpenSSH Client. Real-device connections and Ctrl-C delivery while the actual
ssh.exeruns have not been verified. CI uses a fake SSH executable. - Cargo name collision: this project's crate is
kkamji-ssh-connector, not the unrelatedssh-connectorcrate. Both install a command namedssh-connector.
See the roadmap for possible improvements and Rust migration notes for compatibility decisions and verification boundaries.
Homebrew installs completion scripts. With another installation method, add the appropriate line to your shell startup file:
source <(COMPLETE=bash ssh-connector) # ~/.bashrc
source <(COMPLETE=zsh ssh-connector) # ~/.zshrc
COMPLETE=fish ssh-connector | source # ~/.config/fish/config.fishNo separate app configuration is needed. Keep aliases in your SSH config and split groups with Include:
Include config.d/*
Host web-01
HostName web-01.example.invalid
User demoPut another host in ~/.ssh/config.d/lab to give it the lab group. Group labels are file names, not # comments.
- wtree (
wt): manage many git worktrees from one bare clone - create, sync, and clean them up. - awspick: pick an AWS profile from a grouped, filterable list.
- prjump (
prj): jump from the current branch to the new pull request page on GitHub or Bitbucket Cloud. - ssh-connector: pick a host from your
~/.ssh/config, grouped, and connect.
Bug reports and focused pull requests are welcome. Start with the roadmap and run:
cargo fmt --check
cargo clippy --all-targets --locked -- -D warnings
cargo test --lockedTests include golden fixtures from the last Python release and fake-SSH integration tests. To change a demo, re-record and inspect its frames; never record a personal SSH config.
Commits use Conventional Commits (<type>: <summary>, no scopes). release-please opens the version PR; merging it triggers the binary, Homebrew, and crates.io release workflow.
MIT.
