Maybe would be good to comment that for all the transfers and remote executions the host and the remote need to have paswordless authentication enabled.