Skip to content

Commit

Permalink
feat: mention sshackd dep and link to repo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson committed Jun 14, 2021
1 parent 7f3925b commit 16a453b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ This expiration means access to Sparkbox Slack is required to get SSH access to

## How to use

Note: You'll need a running instance of [`sshackd`](https://github.com/sparkbox/sshackd) somewhere for this to work at all. Pass your instance URL with the `-u` flag.

1. Download `sb` from the latest release for your architecture.
2. Login by running `sb login`. This should launch a Sign-in with Slack prompt in your browser. Paste the resultant ID and token back to `sb`.
3. You're now set to generate a SSH Certificate, run `sb ssh`.
3. You're now set to generate a SSH Certificate, run `sb ssh -u your.sshackd.instance`.
4. Verify your local `ssh-agent` has the cert by running `ssh-add -l`and noting the `ECDSA-CERT` entry.
5. You can now SSH to any host that is configured to trust the Certificate Authority.
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func getCert(url string) (cert Cert, error error) {

func init() {
rootCmd.AddCommand(sshCmd)
sshCmd.Flags().StringP("url", "u", "https://slackd-beta.herokuapp.com", "Set an alternate API URL")
sshCmd.Flags().StringP("url", "u", "https://sshackd.herokuapp.com", "Set an alternate API URL")
sshCmd.Flags().BoolP("print", "p", false, "Print cert and private key instead of adding to ssh-agent")
sshCmd.Flags().BoolP("write", "w", false, "Write cert (key-cert.pub) and key (key) to files instead of adding them to ssh-agent")
}

0 comments on commit 16a453b

Please sign in to comment.