Skip to content

sshc 0.3.0

Choose a tag to compare

@W-Industries-Luke W-Industries-Luke released this 05 Oct 03:16

Changes since 0.2.1

  • Saved secrets now go to your system's credential store - Windows Credential Manager, the macOS Keychain, or the Linux Secret Service keyring - instead of plain text in the config file. The file only records that an entry exists (password = @credential-store). Where there is no store (servers, containers), or with sshc set --plain, sshc keeps the plain-text behaviour, and existing plain-text entries continue to work. Run sshc set again to move an old entry into the store.
  • sshc unset removes a stored entry; sshc list shows what is stored and where, never the values.
  • Short options for set and unset, which combine: -s session, -p passphrase, -H host, -k key, -P profile, -f plain, -n no-clear. sshc set -sp is sshc set --session --passphrase.
  • Plain-word commands: sshc check, install, init, shell-init, help and version, alongside the -- forms.
  • sshc unset -s clears a session variable. The shell hook now handles every set/unset call; open a new terminal after upgrading so the updated hook is loaded.

Install

irm https://raw.githubusercontent.com/W-Industries-Luke/sshc/main/install.ps1 | iex      # Windows (PowerShell)
curl -fsSL https://raw.githubusercontent.com/W-Industries-Luke/sshc/main/install.sh | sh  # Linux / macOS
scoop bucket add sshc https://github.com/W-Industries-Luke/scoop-bucket; scoop install sshc
brew install W-Industries-Luke/tap/sshc

Requires OpenSSH 8.5 or newer. Verify downloads against SHA256SUMS.

Known limitations

  • The credential-store backends pass automated round-trip tests on Windows, macOS and Linux, and the Linux one has been used end to end. The Windows and macOS ones have not yet been used interactively by a person.
  • Windows support is new. Checked by hand on Windows with OpenSSH 9.5 (as of 0.2.1): install.ps1, sshc --install, the PowerShell hook, sshc set --session, and connecting with a stored key passphrase. Not yet run on Windows: the Scoop package and login-password prompts.
  • A secret in the credential store is protected from other accounts and from someone reading the disk, not from programs running as you.
  • The binaries are not code-signed, so Windows SmartScreen and macOS Gatekeeper may warn on first run.