Skip to content

sshc 0.4.0

Choose a tag to compare

@W-Industries-Luke W-Industries-Luke released this 05 Oct 04:20

New in 0.4.0

  • Password managers. sshc set -c '<command>' records a command instead of a secret; sshc runs it when the secret is needed and uses the first line it prints. Works with 1Password (op read ...), Bitwarden, pass, cloud secret services or your own script. %h, %u and %k stand for the host, user and key file. The command is run directly, not by a shell, and check and list never run it.
  • sshc ssh-add unlocks a key into ssh-agent using the stored passphrase, so plain ssh, git and everything else stop prompting too.
  • sshc run <command> runs any program that uses ssh underneath (git, Ansible, ...) with sshc answering the prompts. Name the hosts that may receive the active login password with -d.
  • sshc each HOST... -- COMMAND runs a command on several hosts at once, with each line labelled by host and a summary of failures.
  • Host picker. sshc on its own (or sshc pick) lists the hosts in your ssh config and connects to the one you choose; sshc hosts just lists them.
  • Tab completion for host names, commands and options in bash, zsh, fish and PowerShell. It comes with the shell hook, so open a new terminal after upgrading.
  • GitHub Action. uses: W-Industries-Luke/sshc@v0.4.0 installs sshc on Linux, macOS and Windows runners.

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

  • Everything new in this release is tested on Linux, including against a real SSH server and ssh-agent. On Windows and macOS it is covered by unit tests and, for the action, by CI; nobody has yet used ssh-add, run, each, the picker or completion by hand on Windows. The PowerShell completion was tested under PowerShell 7 on Linux.
  • The password manager examples in the README use each tool's documented syntax but were not run against those services; a stand-in command was used in testing.
  • The credential-store backends pass automated round-trip tests on Windows, macOS and Linux, and the Linux one has been used end to end.
  • 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.