Robert - if you look at the lines Chris is quoting, they are explicitly sudo ssh* lines.  I think the cobbler lines (under sudo) are outside the clean-node script.