Skip to content

Unable to connect with SSH CA user cert #727

Answered by J-Hunter-Hawke
ebanDev asked this question in Q&A
Discussion options

You must be logged in to vote

Oops, misspoke on that one; please see my corrections to that comment. You can see the principal listed when running the step ssh certificate inspect ... command as you did above. In this context, the principal on the user certificate would be the name of the user you are trying to log in as on the host device. For example, if you were to SSH in to the ubuntu user, you would specify it as the principal when provisioning your user certificate: step ssh certificate <key_id> <key_file> --principal="ubuntu".

On the host side, you'll want to specify its hostname or IP address as the principal on its SSH host certificate. OpenSSH will check this value against your SSH call.

My colleague @tashian

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by J-Hunter-Hawke
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/ssh SSH Certificates
2 participants
Converted from issue

This discussion was converted from issue #726 on October 27, 2021 18:55.