This is the same behavior exhibited when I ran shell commands from HA to another pi, so I’m guessing the fix is the same. I needed to exchange keys and store them in a specific directory to get them to persist. Here is the guide I followed.