Geeting error after enabling publick key authentication

I have added below lines in confd.conf file to enable public key authentication.
ns0:aaa
ns0:sshPubkeyAuthentication
ns0:enabledtrue</ns0:enabled>
ns0:modelocal</ns0:mode>
</ns0:sshPubkeyAuthentication>
</ns0:aaa>

but getting below error while starting confd service
root@orchestrator:/# /var/confd/bin/confd -c /var/confd/etc/confd/confd.conf --foreground --addloadpath /var/confd/etc/confd/ --verbose
“Bad configuration: /var/confd/etc/confd/confd.conf:215: Element sshPubkeyAuthentication is invalid: "\n " is an invalid value.\n”

and system is with confd version 6.3

Please help me to fix this issue

It looks like you might be trying to configure based on 18.4.1. Public Key Login. Please check the syntax of your config file, possibly by configuring through the CLI and then do in a

show configuration aaa | display xml

to see the proper syntax.

Thanks for the info. could you please provide the link for confd 6.3 user guide. It is missing in below link.

ConfD Internal Developer Portal - Documents

Please confirm if public key based authentication is supported in 6.3

Thanks,
Vinuta MB

ConfD 6.3 is quite old and out of support, and so the UG is not generally available. Perhaps someone from the community has a copy to share?

@vinuta_mb, it doesn’t appear that the ‘aaa/sshPubkeyAuthentication’ has the ‘enabled’ and ‘mode’ sub-parameters. The ‘aaa/sshPubkeyAuthentication’ can be set to a value of ‘local’ or ‘system’ as described in section 14.4.1 of the older user guides (that appears to be the same in 6.2.1 and 6.3.9), and section 18.4.1 the latest (8.0.18).