Skip to content
/ shf Public

Simple SSH host finder

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jsmits/shf

Repository files navigation

Crates.io

Simple SSH host finder. Fuzzy search built-in.

Table of contents

Installation

$ cargo install shf

From source

$ git clone https://github.com/jsmits/shf.git
$ cd shf

cargo build

$ cargo build --release

(put the resulting target/release/shf on your PATH)

cargo install

$ cargo install --path .

Usage

$ shf -h
shf 0.2.2
Simple SSH host finder

USAGE: shf [OPTIONS]

OPTIONS:
    -c, --config <CONFIG>    SSH config file [default: ~/.ssh/config]
    -l, --list               Print all hosts
    -h, --help               Print help
    -V, --version            Print version

Examples

Fuzzy search through your hosts

in ~/.ssh/config

$ shf

in a different SSH config file

$ shf -c /path/to/ssh/config

Search a host and directly SSH into it

bash / zsh

$ ssh $(shf)

fish

$ ssh (shf)

List all hosts

$ shf -l

How to contribute

Please create a new issue when you encounter a bug or have any suggestions or feature requests. Pull requests are welcome as well.

About

Simple SSH host finder

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published