0

I have Pfsense well configured with Openldap. and authentification is working perfectly. I want to be able to access pfsense server via ssh with ssh key stored in Openldap .

On Openldap: I have ssh public keys stored in sshpubkey attribute. To do that I added an objectclass with sshpubkey attribute to Openldap schema and made user inherit from it. User inherits from posixAccount too.

On pfsense: 1- I enabled in advanced settings ssh with 'Public Key Only' option. 2- In Openldap server configuration I mentioned the group 'ops' as Shell Authentication Group DN like so: cn=ops,ou=groups,dc=example,dc=com 3- In System/User Manager/Settings: I also checked Use Authentication Server for Shell Authentication

But still can't authenticate to pfsense via ssh: ssh -i key user@pfsense user@pfsense: Permission denied (publickey).

Could you please give me any help?

0 Answers0