cli icon indicating copy to clipboard operation
cli copied to clipboard

`step ssh config` does not respect the `--context` flag when configuring a host.

Open dopey opened this issue 2 years ago • 1 comments

dopey avatar Apr 19 '22 05:04 dopey

+1, also does not respect the context flag when configuring a user

❯ step context select dev
✔ Context: dev

❯ step ssh config --roots --host --context dev
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH[...]e9/5pX5r30EEWcg=

❯ step context select test
✔ Context: test

❯ step ssh config --roots --host --context dev
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAy[...]SLLERKYhxyFYozI=


❯ step context select dev
✔ Context: dev

❯ step ssh config --roots --context test
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlz[...]SR8hXjW6G9h5+IxQ8hA=

❯ step context select test
✔ Context: test

❯ step ssh config --roots --context test
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH[...]UJZA/ofW0H/JAU=

clayrosenthal avatar Jul 04 '23 00:07 clayrosenthal