On 28/11/16 12:30, Richard Hector wrote:
Turns out this was the issue - problem solved.For some reason the interactive successful use of ssh must have used my non-root users key even when run by (su) root in a graphical terminal. I needed to send a root public key to the NAS to get it to accept the connection when run from the daemon. /root/.ssh/authorized_keys in the NAS (running some version of Linux) only had the normal user public key....nas doesn't recognise login as authorised user
Thanks to all for the replies.