move temp sudo put files to /tmp

When creating a temporary file on the remote host, it should go into a temporary directory. I ran into this problem because I didn't have write access to whatever directory it was trying to access.