tramp says: “Cannot find local copy program: pscp” – but that does not mean there is something wrong with your emacs/tramp/PuTTY set-up

Every now and then I come across this error message:

Cannot find local copy program: pscp

This only occurs for “bigger” files (e.g. a 40k file), not for small files, because small files are being dealt with by plink.

tramp-do-copy-or-rename-file-out-of-band (in lisp/net/tramp-sh.el) tries to find the copy-program on exec-path instead of PATH, so we have to add putty-directory to exec-path as well. I amended this page to deal with the situation:

Fixed  😆

This site uses Akismet to reduce spam. Learn how your comment data is processed.