You don’t. You just enable ssh and connect it to network. Essentially ‘touch /boot/ssh’
I’ve had this problem multiple times and find this approach really nice (and wish it shipped with raspbian!)
Edit: forgive me, I see that's not what you meant at all. Or maybe it was? Either way, the point is valid.