A CLI for generating SSH Certificates via Sign-in with Slack.
SSH Certificates are easier to manage than SSH keys primarily because Certificates can expire automatically. This expiration means access to Sparkbox Slack is required to get SSH access to our various servers which strikes a good balance between security and maintenance overhead.
brew tap sparkbox/brew
brew install sparkbox/brew/sb
- Download
sb
from the latest release - Unzip the file
- Move the
sb
binary to a location your$PATH
understands: e.g.mv sb /usr/local/bin/sb
- Start a fresh shell instance (new Terminal window)
- Login by running
sb login
. This should launch a Sign-in with Slack prompt in your browser. Paste the resultant ID and token back tosb
. - Run
sb ssh
to generate a new, time limited SSH certificate. - Run
ssh-add -l
to verify your localssh-agent
has the cert by locating theECDSA-CERT
entry. - You can now SSH to any host that is configured to trust the Certificate Authority.
- If you are using an Intel based machine, use the AMD64 file.
- If you are using an M1 MacBook, use the AMR64 file.