{"id":48,"date":"2003-03-21T14:29:04","date_gmt":"2003-03-21T14:29:04","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=14"},"modified":"2008-07-24T22:41:35","modified_gmt":"2008-07-25T03:41:35","slug":"say-that-ten-times-fast","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2003\/say-that-ten-times-fast\/","title":{"rendered":"CVS through Plink through Proxy patch"},"content":{"rendered":"<p><strong>UPDATE<\/strong>: This is no longer an issue in more recent Putty releases.<\/p>\n<p>Putty&#8217;s <A href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/0.53b\/htmldoc\/Chapter7.html#7\">plink.exe<\/A> is an ssh Windows command-line tool that&#8217;s great for scripted access to CVS.  It is used behind the scenes by <A href=\"http:\/\/www.tortoisecvs.org\/\">TortoiseCVS<\/A>.  There are lots of options available to establish the SSH connection, including going through a proxy, and these are stored in a &#8220;session&#8221;.  However, if you try to load a session from the command line, so you can get proxied CVS access, plink.exe ignores the rest of the command line.<\/p>\n<p>I got the source for plink.exe and patched it to work for me.  I am fairly sure this version will work for everyone, but not positive &#8211; I have submitted it to the Putty team for review.  Here&#8217;s the <A href=\"\/files\/plink.exe\">patched version<\/A> for now, based on the development snapshot dated 3\/17\/03.<\/p>\n<p>PLINK session settings you should change from default:<\/p>\n<ul>\n<li>host<\/li>\n<li>auto-login<\/li>\n<li>send timeout (typically needed to keep the proxy from dropping the connection<\/li>\n<li>proxy<\/li>\n<li>preferred SSH = 1<\/li>\n<li>force local echo off<\/li>\n<li>force line edit off<\/li>\n<li>ssh: dont allocate pseudo-terminal<\/li>\n<\/ul>\n<p>TortoiseCVS SSH command:<\/p>\n<ul>\n<li>plink.exe -load session -batch<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>Source change:<\/p>\n<p>In PLINK.C, in main(), around line 480&#8230;<\/p>\n<pre><code>\/*\r\n* Perform command-line overrides on session configuration.\r\n*\/\r\n\r\n\/\/ MDM    3\/21\/2003 8:54:47 AM\r\nszCommandBackup = cfg.remote_cmd_ptr;\r\n\r\n\/\/ MDM     3\/21\/2003 8:54:47 AM\r\n\/\/ WARNING! This will trash the command previously read from the command line!!\r\ncmdline_run_saved(&cfg);\r\n\r\n\/\/ MDM    3\/21\/2003 8:54:47 AM\r\ncfg.remote_cmd_ptr = szCommandBackup;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\nSource change:<br \/>\n<HR><br \/>\nIn PLINK.C, in main(), around line 480&#8230;<\/p>\n<p>    \/*<br \/>\n     * Perform command-line overrides on session configuration.<br \/>\n     *\/<\/p>\n<p>    \/\/ MDM\t3\/21\/2003 8:54:47 AM<br \/>\n    szCommandBackup = cfg.remote_cmd_ptr;<\/p>\n<p>    \/\/ MDM \t3\/21\/2003 8:54:47 AM<br \/>\n    \/\/ WARNING! This will trash the command previously read from the command line!!<br \/>\n    cmdline_run_saved(&#038;cfg);<\/p>\n<p>    \/\/ MDM\t3\/21\/2003 8:54:47 AM<br \/>\n    cfg.remote_cmd_ptr = szCommandBackup;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[19,10],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-opensource","category-tricks-tips-tools"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-M","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":6,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/48\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}