{"id":3560,"date":"2014-03-26T21:00:40","date_gmt":"2014-03-26T20:00:40","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/?p=3560"},"modified":"2019-03-25T13:36:20","modified_gmt":"2019-03-25T12:36:20","slug":"emacstrampwin-fatal-received-unexpected-end-of-file-from-server","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2014\/03\/26\/emacstrampwin-fatal-received-unexpected-end-of-file-from-server\/","title":{"rendered":"emacs\/tramp\/win\/putty: \u201cFatal: Received unexpected end-of-file from server\u201d"},"content":{"rendered":"<p>\t\t\t\tShort story \u2013 what (released) versions to choose:<\/p>\n<p>The combination emacs\/tramp\/putty on Windows does not work with the released PuTTY-0.63. Use either PuTTY-0.62 or a PuTTY development snapshot,\u00a0r10016 works for me.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.gnu.org\/software\/emacs\/windows\/\">http:\/\/www.gnu.org\/software\/emacs\/windows\/<\/a>\u00a0\u2013 the latest released version was fine for me: 24.3.1 \u2013 I am always happy to get the very latest released version<\/li>\n<li>tramp \u2013 as packaged with the emacs at the location just referred to<\/li>\n<li>PuTTY to be found at\u00a0<a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html<\/a><\/li>\n<li>PuTTY-0.63 faults with accesses as shown below<\/li>\n<li>PuTTY&#8217;s development snapshot does not fault for me, as 0.63 does \u2013\u00a0r10156 is, what I picked up \u2013 I am happy to try newer ones, if asked to<\/li>\n<li>Windows 7 Professional \u2013 because that&#8217;s the current company standard<\/li>\n<\/ul>\n<p>Long story:<\/p>\n<p>After the Windows upgrade at work (WinXP-&gt;Win7) I certainly installed the newest available emacs (i.e. emacs package) and PuTTY (0.63) as well.<\/p>\n<p><span style=\"line-height: 1.5\">Current issue: On opening a file accessed through &#8220;\/pscp:SESSIONNAME:&#8221;, I keep getting this message:<\/span><\/p>\n<pre>Fatal: Received unexpected end-of-file from server<\/pre>\n<p>I tried the &#8220;\/plink:SESSIONNAME:&#8221; tramp access instead, and it worked (I mean: it didn&#8217;t yield this message), but the combination tramp\/plink keeps leading to corrupted (remote) files, as I described before [<a href=\"http:\/\/wp.me\/p4qjMw-6P\">link<\/a>], so that&#8217;s not really an option.<\/p>\n<p>S.K.R. de Jong\u00a0wrote [<a href=\"http:\/\/www.1-script.com\/forums\/ssh\/putty-0-63-issue-14867-.htm\">link<\/a>], that the quoted message stems from an improper reaction of PuTTY, and Simon Tatham conceded the bug\u00a0[<a href=\"https:\/\/groups.google.com\/d\/msg\/comp.security.ssh\/F1B9Gr9SzoQ\/WmxXwvPgK6AJ\">link<\/a>], writing the bug would be fixed with r10016.<\/p>\n<p>Because I \u00a0found Simon&#8217;s statement and announcement only during my later investigations, I decided to give the older PuTTY-0.62 a try, and this problem actually disappeared. Of course I love leading \/ bleeding edge, but right now this seems to stand in my way. So I will have to post the scenario on some PuTTY forum \/ mailing list, but until that will lead to an improvement here, I shall stick to PuTTY-0.62.<\/p>\n<p>When I had found Simon Tatham statement on this issue [<a href=\"https:\/\/groups.google.com\/d\/msg\/comp.security.ssh\/F1B9Gr9SzoQ\/WmxXwvPgK6AJ\">link<\/a>], I drew new hope, that a more modern version of PuTTY addressing the latest security issues \u00a0would also solve my problem \u2013 so I am\u00a0giving the\u00a0current development snapshot (to be found <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">here<\/a>) a chance, i.e. &#8220;r10156&#8221;.\u00a0Actually I have never been eager to employ a development snapshot of PuTTY, so that is my &#8220;<em>first<\/em>&#8220;. I subscribed for the PuTTY-announce mailing list, so I shall be able to replace the development snapshot by a properly released one.<\/p>\n<p>If that will not successful:<\/p>\n<ul>\n<li>TBD: first I shall have to find out, how exactly plink.exe gets called, so that the error message above gets causes \u2013 maybe I will have to ask the tramp support folks for help<\/li>\n<li>TBD:\u00a0<a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/feedback.html#feedback-bugs\">http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/feedback.html#feedback-bugs<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Short story \u2013 what (released) versions to choose: The combination emacs\/tramp\/putty on Windows does not work with the released PuTTY-0.63. Use either PuTTY-0.62 or a PuTTY development snapshot,\u00a0r10016 works for me. http:\/\/www.gnu.org\/software\/emacs\/windows\/\u00a0\u2013 the latest released version was fine for me: 24.3.1 \u2013 I am always happy to get the very latest released version tramp \u2013 [&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":"emacs\/tramp\/win: \u201cFatal: Received unexpected end-of-file from server\u201d","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-3560","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-Vq","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3560","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=3560"}],"version-history":[{"count":1,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3560\/revisions"}],"predecessor-version":[{"id":10530,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3560\/revisions\/10530"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=3560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=3560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=3560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}