File Vault 2 and ssh
The only time the machine will need the filevault key to unlock is at boot, at all other times the system is effectively decrypted with the key in ram.

As soon as the machine powered off, it will be locked again.

You do not need to be logged in, and waking the machine up from sleep is no issue.