{"id":7517,"date":"2017-09-08T09:40:27","date_gmt":"2017-09-08T07:40:27","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=7517"},"modified":"2021-07-07T13:25:55","modified_gmt":"2021-07-07T11:25:55","slug":"tramp-says-cannot-find-local-copy-program-pscp-but-that-does-not-mean-there-is-something-wrong-with-your-emacstrampputty-set-up","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2017\/09\/08\/tramp-says-cannot-find-local-copy-program-pscp-but-that-does-not-mean-there-is-something-wrong-with-your-emacstrampputty-set-up\/","title":{"rendered":"tramp says: &#8220;Cannot find local copy program: pscp&#8221; \u2013 but that does not mean there is something wrong with your emacs\/tramp\/PuTTY set-up"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every now and then I come across this error message:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Cannot find local copy program: pscp<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">This only occurs for &#8220;bigger&#8221; files (e.g. a 40k file), not for small files, because small files are being dealt with by plink.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">tramp-do-copy-or-rename-file-out-of-band (in lisp\/net\/tramp-sh.el) tries to find the copy-program on <em>exec-path<\/em> instead of <em>PATH<\/em>, so we have to add putty-directory to exec-path as well. I amended this page to deal with the situation:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.emacswiki.org\/emacs\/Tramp_on_Windows\">https:\/\/www.emacswiki.org\/emacs\/Tramp_on_Windows<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Fixed&nbsp; \ud83d\ude06<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every now and then I come across this error message: Cannot find local copy program: pscp This only occurs for &#8220;bigger&#8221; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[120,475,666],"tags":[1359],"class_list":["post-7517","post","type-post","status-publish","format-standard","hentry","category-emacs","category-putty","category-uncategorized","tag-tramp"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Xf","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=7517"}],"version-history":[{"count":2,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7517\/revisions"}],"predecessor-version":[{"id":11806,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7517\/revisions\/11806"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=7517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=7517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=7517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}