Getting started
OneSSH is a CLI that stores SSH hosts and credentials encrypted under one master password. After you unlock once (cached in memory), routine SSH work does not prompt for passwords again.
Install
Homebrew (macOS / Linux)
bash
brew tap tiangong-dev/onessh https://github.com/tiangong-dev/onessh
brew install tiangong-dev/onessh/onesshBuild from source
bash
git clone https://github.com/tiangong-dev/onessh.git
cd onessh
make buildThe onessh binary is written to the repository root.
Initialize
bash
onessh initChoose a strong master password (12+ characters with mixed case, digits, and symbols). It is never written to disk; only derived key material and ciphertext are stored.
Add a host
Interactive:
bash
onessh add web1You can create a new user profile or attach an existing one via user_ref.
Connect
bash
onessh web1Pass extra SSH flags after --:
bash
onessh web1 -- -L 8080:127.0.0.1:80 -NNext steps
- Commands — command overview
- Configuration — data path, agent, environment variables
- Reference — architecture and security deep dives