Why do you need the password?
You want to start a sshd? Then start it from the hdd while customizing, create the keys, set the password and stop it. And create the compressed fs.

Bye