The attached patch has improved error handling for out-of-band copying and some bug fixes. The changes are: 1. Give error message "permission denied"/"not a regular file"/"no such file or directory" rather than the misleading "login failed" when appropriate. 2. Also kill the copy program buffer when an error occurs (bugfix). 3. Use pscp as default method under windows. Objections?