sesh-ssh-0.1.1 is not a library.
sesh
A fast, minimal SSH connection manager for VPS hosts. Store, tag, and connect to your servers from the command line.
Installation
From crates.io
From source
Requires the Rust nightly toolchain.
From GitHub releases
Download a prebuilt binary from the releases page and place it somewhere on your PATH.
Quick start
# Import hosts from your SSH config
# Or add one manually
# List all hosts
# Connect
Commands
sesh add <name>
Add a host entry manually.
| Flag | Description | Default |
|---|---|---|
--host |
Hostname or IP (required) | |
--user |
SSH user | |
--port |
SSH port | 22 |
--identity-file |
Path to private key (-i) |
|
--tags |
Comma-separated tags | |
--provider |
Provider label (e.g. hetzner) |
sesh import
Import host entries from an SSH config file.
| Flag | Description | Default |
|---|---|---|
--file |
Path to SSH config | ~/.ssh/config |
--overwrite |
Replace existing entries with imported values | |
--provider |
Provider label for all imported entries | |
--tags |
Comma-separated tags for all imported entries |
sesh list
List stored host entries in a table.
| Flag | Description |
|---|---|
--tag |
Filter by tag |
--provider |
Filter by provider |
sesh connect <name>
Connect to a stored host using system ssh.
| Flag | Description |
|---|---|
--dry-run |
Print the SSH command without running |
sesh doctor [name]
Run environment and host health checks. Verifies that ssh is available, the store file exists, and that hosts are reachable over TCP with a valid SSH banner.
| Flag | Description | Default |
|---|---|---|
--timeout-ms |
TCP/banner timeout in ms | 1500 |
Storage
Host entries are stored in ~/.config/sesh/hosts.toml.
= 1
[[]]
= "web-1"
= "203.0.113.10"
= "root"
= 2222
= "/home/me/.ssh/id_ed25519"
= ["prod", "web"]
= "hetzner"
License
MIT