@sgennadi Thanks for the detailed write-up. You are right that FOS already runs sshd and allows root login. The only gap is that root has no credential you can use remotely.
I filed this as https://github.com/FOGProject/fogproject/issues/2193 with a key-only design:
You put one or more SSH public keys in a FOG setting. When a debug task starts, FOS fetches the keys and installs them for root. FOS shows the IPv4 and IPv6 addresses on the console, so you can connect right away. Normal deploy, capture, and registration tasks never install the keys.A public key is not a secret, so it can reach FOS without any protected delivery. A root password is different. It needs a protected way to reach FOS, and a kernel argument would expose it. So a configured password and a random password for each task are out of scope for now. Each can be its own request after the key version ships.
Until then, the workaround is the one you already use: run passwd at the debug console, then connect with SSH.