Most place I have read that should be able to login just with only the user certificate. Testing a loopback login I have followed the following tutorial: https://goteleport.com/blog/how-to-configure-ssh-certificate-based-authentication/ and discovered I am misunderstanding a key concept:
You'll need both [the signed user certificate] and the private key for logging in.
I can't successfully ssh
without the id_rsa
key present alongside the id_rsa-cert.pub
file. Within the certificate I've included root
and personal user hence I can ssh root@host
with no password which clearly uses the certificate as I have no key registration for root setup. It's using certificates registered in /etc/
. Futhermore ssh user@host
is successful without known_hosts
or authorized_keys
as I have in /etc/ssh/sshd_config
TrustedUserCAKeys /etc/ssh/user-ca.pub
HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub
and in Everywhere I have read that should be able to login just with the user certificate
the public key of the certificate authority in /etc/ssh/ssh_known_hosts`:
@cert-authority * $(</etc/ssh/host-ca.pub)
I was sure I've logged in without id_rsa
present in the past. Can authentication be successful with only the ~/.ssh/id_rsa-cert.pub
file? If so what is this tutorial missing?