Where are the ssh public keys kept in snapshots

I am using imagebuilder and I want to pre populate the image with some ssh public keys.
Where would the public keys go under "files/"?

Is there a way to pre set the router passwd?

The keys are in the file /etc/dropbear/authorized_keys (assuming you're using dropbear as the ssh server) and the hashed root password is in /etc/shadow like in standard Linux.

I'm using dropbear, thanks,