Well, the script is executed as the root user using roots rsa/dsa keys so I cant see that would be the problem. After turning on debugging for SSH in the script I found out that the passphrase authentication for the keys dont work under batchmode. And here is where I am at the moment, stuck :-)
/Roger