{"id":16639155,"url":"https://github.com/daniellockyer/sshh","last_synced_at":"2026-03-14T22:33:36.642Z","repository":{"id":57668441,"uuid":"223854744","full_name":"daniellockyer/sshh","owner":"daniellockyer","description":"🖥️ Quickly SSH into hosts","archived":false,"fork":false,"pushed_at":"2021-01-04T11:04:49.000Z","size":69,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T02:44:34.053Z","etag":null,"topics":["ssh","tools"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniellockyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-25T03:40:43.000Z","updated_at":"2024-07-14T05:20:29.000Z","dependencies_parsed_at":"2022-08-27T03:24:51.134Z","dependency_job_id":null,"html_url":"https://github.com/daniellockyer/sshh","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniellockyer%2Fsshh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniellockyer%2Fsshh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniellockyer%2Fsshh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniellockyer%2Fsshh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniellockyer","download_url":"https://codeload.github.com/daniellockyer/sshh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822717,"owners_count":20516154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ssh","tools"],"created_at":"2024-10-12T07:05:17.780Z","updated_at":"2026-03-14T22:33:31.603Z","avatar_url":"https://github.com/daniellockyer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖥️ sshh\n\n_(aka `ssh hosts`)_ - Quickly SSH into hosts\n\n[![Actions Status](https://github.com/daniellockyer/sshh/workflows/CI/badge.svg)](https://github.com/daniellockyer/sshh/actions)\n[![Crates.io](https://img.shields.io/crates/v/sshh.svg)](https://crates.io/crates/sshh)\n\nProblem:\n\n* dozens of hosts to SSH in to but I can never remember the particular IP\n* cannot use domain name because they sit behind Cloudflare (sometimes)\n* unable to use subdomain because it can expose the IP (sometimes)\n* `.ssh/config` doesn't support grouping of servers\n* My `.bashrc` file was filling up with messy `alias`es\n\n`sshh` allows you to list all your hosts in a configuration file, and then connect to them using a name.\n\n## Usage\n\n```bash\n$ sshh project-server # connect to the `project-server` host\n\n$ sshh -g acme-corp main # connect to the `main` host under the `acme-corp` group\n```\n\nGiven an ambiguous host name, `sshh` will connect to the last one defined in the config file.\n\n`sshh` ends up calling `ssh` with the suitable arguments, so make sure it is installed.\n\n## Installation\n\n1. Install using cargo: `cargo install sshh`\n1. Download a binary from the [GitHub Releases page](https://github.com/daniellockyer/sshh/releases)\n1. Build and install yourself:\n    1. Clone the repository\n    1. Build using `cargo build --release`\n    1. Install using `cargo install --path .`\n\n## Config\n\n`sshh` uses the yaml file format, generally stored in `~/.config/sshh.yml`. You can pass a custom config through the `-c` flag.\n\nA server has the following options:\n\n* `name`: the server name\n* `user` (optional): defaults to \"root\"\n* `host`: the domain or IP address\n* `port` (optional): defaults to 22\n* `forwarding` (optional): whether to enable authentication agent forwarding, defaults to false\n* `identity_key` (optional): the location of the identity key to use, defaults to nothing\n\nServers can be put into groups, or listed separately. List individual servers under the `servers` mapping, and groups under `groups`. The config file is deserialized using [`serde_yaml`](https://docs.rs/serde_yaml/). The example below should give a good indication of the expected format.\n\n```yml\nservers:\n    - name: project-server\n      user: banana\n      host: 1.2.3.4\n      port: 1337\n      forwarding: true\n    - name: vpn\n      host: 2.3.4.5\ngroups:\n    - name: random-company\n      servers:\n          - name: main\n            user: app\n            host: random-company.com\n          - name: backup\n            user: app\n            host: backup.random-company.com\n    - name: acme-corp\n      servers:\n          - name: main\n            host: main.acme-corp.com\n          - name: venus\n            host: venus.acme-corp.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniellockyer%2Fsshh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniellockyer%2Fsshh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniellockyer%2Fsshh/lists"}