Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ssht

SSH to a host and attach/create a remote tmux session.

Wraps ssh with optional port-forwarding and an automatic tmux new -As <session> on the remote, with HISTSIZE=999 exported so the session retains a useful command history.

Usage

usage: ssht [-u] [-L <spec>] [-s <session>] <host>

SSH to a host and attach/create a remote tmux session.
The remote session starts with HISTSIZE=999 exported so command history
survives through the session.

Flags:
  -u            Forward local 8080 to remote 443 (the Lattice UI).
  -L <spec>     Extra -L forward spec (repeatable). E.g. -L 9090:localhost:9090
  -s <session>  Remote tmux session name (default: "work").