You need to enable the SSH service, configure it to permit root login, generate a private/public key pair and put the public key into the root user on TrueNAS keeping the private key on your Windows system.
When I wrote "look into" I meant you will have some reading to do. I don't use Windows, so ...