scp works well. Add some error handling code. add "cwd" parameter to check_output functions.