Repository navigation
sshc 0.3.0
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 withsshc set --plain, sshc keeps the plain-text behaviour, and existing plain-text entries continue to work. Runsshc setagain to move an old entry into the store. sshc unsetremoves a stored entry;sshc listshows what is stored and where, never the values.- Short options for
setandunset, which combine:-ssession,-ppassphrase,-Hhost,-kkey,-Pprofile,-fplain,-nno-clear.sshc set -spissshc set --session --passphrase. - Plain-word commands:
sshc check,install,init,shell-init,helpandversion, alongside the--forms. sshc unset -sclears a session variable. The shell hook now handles everyset/unsetcall; 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.