SSH security using yocto

I have built the toradex yocto distribution for Apalis-iMX8 board. For now I can easily access my board through ssh using password as root which is very common and anyone access that board easily.

For production level, I want to make it secure from hackers. I want to know what changes I have to do in my yocto image so that I can make it secure?

you can go through two ways:
1- remove SSH server from your image by editing local.conf, so no one can connect with SSH on any condition.
2- set password for your root user with $passwd command

is there any other way to provide security like using certificates?

Hi @rohitsharma

Have a look here.This may help you.

I am looking for security using Auth. certificates. Is there any other way?