when creating the SD card, create the file /boot/ssh, edit /etc/network/interfaces, and add my ssh key in /root/.ssh/authorized_keys.
/boot/ssh
/etc/network/interfaces
/root/.ssh/authorized_keys