0

I know the access via root won't work (client sshd_config and restricted account in FreeIPA). But is there a way to blacklist root either on the host or on FreeIPA so it's denied immediately rather than prompting for a password?

I'm wondering if I'm missing something... If not possible then I guess my next goal will be to log root attempts via FreeIPA and alert/report on them.

dmgeurts
  • 13
  • 4

1 Answers1

0

You should be able to do something like this in sshd_config:

Match User root
  AuthenticationMethods publickey

Match User *
  AuthenticationMethods publickey,password

Possibly add an AuthorizedKeysFile /dev/null to the root config as well.

Mark Wagner
  • 18,019
  • 2
  • 32
  • 47