..if triggered by the sshd daemon the nohup.out is owned by root, then when an ssh client sessions tries to created the same nohup.out it can't exec the command since the file is still there and owned by root. Generally talking, place in the home folder a nohup.out file is not a good choice. It would be better to move it in some temporary folder.