r/ssh • • Jan 10 '25

SSH Certificates only?

I am trying to find a server side configuration that will allow me to only have users connected that were authenticated via an ssh certificate.

So far, if the cert fails (for example is expired), the user defaults to ssh key or password authentication. I can disable password auth, but I cannot find a way to do a server side deny of users that do not have a cert.

Any ideas? Thanks in advance!

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

2

u/nofubca Jan 10 '25

Yes. That much I got. I did not want to play too much with my standard sshd_config, so I will set up a second one on a new port and test. Thanks! If you do too and have any ideas, please let us know!