Skip to content

Multiple step ssh user profiles #493

Answered by tashian
tashian asked this question in Q&A
Feb 22, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Sort of yes! You can use STEPPATH to set the location of the step config folder, which defaults to $HOME/.step. The caveat is, our SSH configuration shim doesn't handle multiple profiles well, so if you want to use step ssh config to enable for seamless SSO, you will need to change each Included SSH config file (located in $STEPPATH/ssh/config) to add the relevant STEPPATH. For example:

Match exec "bash -c 'STEPPATH=$HOME/.step-homelab step ssh check-host %h'"
        UserKnownHostsFile "/Users/carl/.step/ssh/known_hosts"
        ProxyCommand bash -c 'STEPPATH=$HOME/.step-homelab step ssh proxycommand --provisioner "okta" %r %h %p'

I've opened an issue about this here.

Replies: 1 comment 3 replies

Comment options

tashian
Feb 22, 2021
Collaborator Author

You must be logged in to vote
3 replies
@maraino
Comment options

@tashian
Comment options

tashian Feb 22, 2021
Collaborator Author

@dopey
Comment options

Answer selected by tashian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants