smallstep / cli

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
https://smallstep.com/cli
Apache License 2.0
3.65k stars 252 forks source link

[Bug]: `--profile`/`--context` has no effect on `step ssh config --host --roots` #1206

Open andsens opened 3 months ago

andsens commented 3 months ago

Steps to Reproduce

  1. Create contexts for two step-cas: ctx-a, ctx-b
  2. Select ctx-a with step context select ctx-a
  3. Retrieve the SSH root config of the other context with step ssh config --host --roots --context=ctx-b

Your Environment

Expected Behavior

step ssh config outputs the root of ctx-b

Actual Behavior

step ssh config outputs the root of ctx-a

Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).