Struggling to Use SSH Certificates #527
-
Hello, We've been using our Smallstep CA to reliably issue client certificates to our edge devices, and that project has become invaluable to everyone involved. Now that we're setting up processes to use SSH Certificates, I'm hitting an issue where the SSH session (preauth) on the user side errors out because of a "key_cert_check_authority" issue and then fails to recognize the CA signing key for the host SSH Certificates. I initially followed this guide to set everything up: https://github.com/smallstep/step-ssh-example. Then to troubleshoot, I've tried cross-referencing a couple guides online that more or less reword the step-ssh-example. I'm about out of ideas to try and troubleshoot these issues. If anyone is willing, could you please review my following implementation and let me know if you see any issues that stick out or if you'd run into these problems before? Thank you, Hosts Setup:
sshd_config:
And then, we restart ssh on the host device. Inspecting the certificate with Users Setup:
Inspecting the certificate with
SSHing to the host device with
And responding 'yes' to the TOFU warning continues with:
Then seeing the line "Certificate invalid: name is not a listed principal," I tried adding a line to /etc/hosts with the host info: SSHing to the hostname with
And responding 'yes' to the TOFU warning continues with:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Try taking the |
Beta Was this translation helpful? Give feedback.
Try taking the
@cert-authority *
out of your/root/.step/certs/ssh_user_key.pub
.The
@cert-authority *
piece is really only forauthorized_keys
/known_hosts
.