copy file to dest, fix if have ssh problem