How to: Fix FreeNAS Failed: Permission denied (publickey,password).

First do a troubleshooting test with the SSH connection as described here:

If a password is requested, follow these steps:

After upgrading FreeNAS it might be possible, that there is no public key assigned to the root user which prevents Replication Tasks from working. The above step should fix that.