Command-line client
UniSSH’s command-line client runs on macOS, Windows and Linux, including machines without a GUI. It signs the machine in as a separate device, syncs an encrypted copy of its vaults, and connects to their hosts. It shares the desktop app’s core, host-key pinning and verify-before-apply sync.
Install
Section titled “Install”With the desktop app
Section titled “With the desktop app”Desktop builds starting with v0.7.1 bundle the CLI. Choose Install CLI on the first-run screen, or open Settings → General → Command-line tools later. Installation is optional and needs no administrator privileges. Open a new terminal. On macOS/Windows, run:
unissh-cli --helpunissh-cli login pairOn Linux, use unissh --help and unissh login pair. The desktop tools also
provide unissh --gui to open the desktop app; its menu entry always opens the
GUI. unissh-cli remains available as the direct terminal command. For an
AppImage, --gui opens the AppImage used during installation; launching it
after a move refreshes that path.
The CLI signs in as its own device. Installing it does not share the desktop app’s unlocked session. After an app update, launching the app refreshes a CLI you previously installed. You can remove it from the same Settings section.
Without the desktop app
Section titled “Without the desktop app”| Platform | Download from the release page |
|---|---|
| macOS, Apple Silicon and Intel | unissh-cli_<version>_macos-universal |
| Windows, x86-64 | unissh-cli_<version>_windows-x86_64.exe |
| Windows, ARM64 | unissh-cli_<version>_windows-aarch64.exe |
| Linux, x86-64 / ARM64 | unissh-cli_<version>_linux-{x86_64,aarch64} |
The macOS/Windows artifacts are available starting with v0.7.1. Rename your download to
unissh-cli (unissh-cli.exe on Windows), put its directory in PATH, and on
macOS/Linux make it executable with chmod +x unissh-cli. Verify the release’s
signed checksums before installing. No separate OpenSSL installation is needed.
The examples below use unissh; with macOS/Windows desktop tools, use
unissh-cli instead. Standalone downloads run the CLI only; --gui belongs to
the optional Linux desktop launcher.
Linux server
Section titled “Linux server”Each release carries the client as
one static Linux binary per architecture, so it runs on any distribution,
however old its libc: unissh-cli_<version>_linux-x86_64 and
unissh-cli_<version>_linux-aarch64. Check it against the release’s signed
SHA256SUMS before installing it:
V=0.7.1 A=x86_64 # the release you want; A=aarch64 on ARMcurl -fLO https://github.com/goduni/unissh/releases/download/v$V/unissh-cli_${V}_linux-$Acurl -fLO https://github.com/goduni/unissh/releases/download/v$V/SHA256SUMScurl -fLO https://github.com/goduni/unissh/releases/download/v$V/SHA256SUMS.minisigminisign -Vm SHA256SUMS -P 'RWQvV7DIid665aUPiJiN5NXimAehmWEjgRS9uLgi2nSWIUiiBY7ZKCAs'sha256sum -c SHA256SUMS --ignore-missingsudo install -m 755 unissh-cli_${V}_linux-$A /usr/local/bin/unisshThe desktop app’s own binary on Linux is also called unissh. On a machine that
has the app installed, give the command-line client another name, for example
/usr/local/bin/unissh-cli, so the app’s launcher keeps starting the app.
Or build it from source (see Build from source for the prerequisites):
cargo build --locked -p unissh-cli --bin unissh --release --features portable # → target/release/unisshSign the machine in
Section titled “Sign the machine in”Pick one of three ways, depending on which account the machine should be.
A separate account, joined by invite. Use this for a shared or production server. Create an invite in the app or the admin panel, then run:
unissh login join https://unissh.example.comIt asks for the invite (the token or the join link) on the terminal rather
than taking it as an argument, where any user of the machine could read it
before it is redeemed. Then it creates a new account on the machine, shows its
Emergency Kit once, and joins the server. The account can open only the vaults a vault admin grants it,
so the machine never holds more than it needs. Run unissh sync after the grant
to pull them.
The same account as your app, by pairing. In a signed-in app open Settings → Server → Add device, then on the machine run:
unissh login pairPaste the seven lines the app shows, and keep the card open until pairing finishes. They hold the pairing secret, so they are not echoed: a dot shows for each line received. The account’s keys travel over the end-to-end encrypted pairing channel; the server only relays the messages.
The same account, by password and Secret Key. This needs escrow sign-in to be on for the account:
unissh login escrow https://unissh.example.com <handle>Pairing and escrow both put your whole account on that machine. Use them on machines you trust as much as your laptop.
Pairing and joining ask for a master password for this machine’s copy; escrow
keeps the account password. Each keeps the Secret Key in an owner-only file so
that unlocking needs only that password, as the app keeps it in the OS keychain.
--no-remember asks for the Secret Key at every unlock instead.
Connect
Section titled “Connect”unissh # pick from a list; back to the list after each sessionunissh hosts # list hosts: [filter] --tag prod --jsonunissh ssh web # terminal on "web" (~. ends it, ~? lists escapes)unissh ssh root@web # as another userunissh ssh web -- systemctl status nginx # one command; the exit code comes backtar c ./site | unissh ssh web -- tar x -C /srv # stdin goes to the commandunissh cp web:/var/log/app.log . # one file, either directionHosts are named by label, vault/label, the start of a label, or their address.
A name that fits several hosts is refused, with the candidates listed.
Hosts resolve as they do in the app. A host with a personal identity uses yours,
jump hosts and proxies are followed, two-factor prompts are asked on the
terminal, and a host that records sessions is recorded, with the recording
uploaded when the session ends. The first connection to a host pins its key and
shows the fingerprint. If the key later changes, the connection stops, and
accepting the new key takes an explicit unissh known-hosts trust <host> <fingerprint>.
Unlocking, syncing, scripts
Section titled “Unlocking, syncing, scripts”Every command unlocks the instance for its own run. The master password is asked on the terminal, so pipes still work, or read from an owner-only file:
UNISSH_PASSWORD_FILE=~/.config/unissh-password unissh ssh web -- uptimeA command that reads hosts syncs first when the local copy is more than five
minutes old. If that sync fails, you get a warning and the command uses the copy
on the machine. --offline never contacts the server, and unissh sync syncs now.
The interactive list locks after 15 minutes without input, and asks for the
master password on the terminal again, even when a password file is set.
Ctrl-C at a password prompt cancels it. unissh ssh web -- cmd | head stops
when head does (status 141, as with ssh). unissh cp replaces a downloaded
file only once the copy is complete, so a failed copy leaves the old one as it
was; uploads are written in place, as scp does.
Nothing that could resume a server session is stored. Each command that needs the server signs in with the unlocked keys and signs out when done.
Vaults a teammate shares
Section titled “Vaults a teammate shares”A vault a teammate shares with you arrives once you trust its owner, and only you
can say who that is: the server is never trusted to. unissh sync says how many
shared vaults wait:
unissh vaults list # the vaults here, and shared ones waitingunissh vaults trust 3f2a9c1e # asks for the owner's fingerprintAsk the owner for their fingerprint over a channel you trust; they find it in
unissh status or in the app. Type or paste it: the vault is trusted only if it
matches the key that created it. Without one, press Enter to see the fingerprint
and type yes after comparing it with theirs digit by digit; that is the weaker
check. The name the server gives the owner is shown as unverified. Once trusted,
the vault is fetched, and a server that later names another owner is refused.
Sign out
Section titled “Sign out”unissh logout # revokes this device on the server, deletes its data hereunissh logout --local # server unreachable: delete locally, revoke from another devicelogout syncs once more before it deletes anything. If a joined account has no
other device, it says so first: deleting its data then loses the account. With
--yes the warning is still printed; only the question is skipped.
What it does not do yet
Section titled “What it does not do yet”Agent forwarding, the saved-password offer at sudo prompts, startup snippets,
auto-reconnect, claiming an instance, SSO sign-in, and more than one server per
machine. Interactive use needs an attached native terminal. One-off commands are not recorded, the same as Fleet commands in the
app.
Security
Section titled “Security”An unlocked unissh is a device of the account. Whoever controls the machine it
runs on can read what it holds while it runs, which is why a shared machine
should get an account of its own with only the vaults it needs. The
threat model covers
the details.