shf

Crates.ioshf
lib.rsshf
version0.2.2
sourcesrc
created_at2022-07-17 14:52:57.958738
updated_at2024-05-22 18:46:48.68221
descriptionSimple SSH host finder
homepage
repositoryhttps://github.com/jsmits/shf
max_upload_size
id627276
size71,689
Sander Smits (jsmits)

documentation

README

Crates.io

Simple SSH host finder. Fuzzy search built-in.

Table of contents

Installation

From crates.io

$ 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.

Commit count: 53

cargo fmt