change scp tmp file to string