{"id":169,"date":"2007-09-25T10:03:08","date_gmt":"2007-09-25T15:03:08","guid":{"rendered":"http:\/\/bitpost.com\/news\/2007\/09\/25\/ssh-with-cygwinx-instead-of-putty\/"},"modified":"2011-04-06T19:26:33","modified_gmt":"2011-04-07T00:26:33","slug":"ssh-with-cygwinx-instead-of-putty","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2007\/ssh-with-cygwinx-instead-of-putty\/","title":{"rendered":"SSH with Cygwin\/X instead of Putty"},"content":{"rendered":"<p>Cygwin\/X can do a lot, including giving you a nice xterm for your Windows-to-linux ssh sessions.<\/p>\n<p>But you&#8217;d think it would be easier&#8230;<!--more--><\/p>\n<ul>\n<li>Install cygwin, including&#8230;\n<pre><code>Shells: bash (included by default)\r\nX11: xorg-x11-xwin: Cygwin\/X X server\r\nNet: openssh: The OpenSSH server and client programs<\/code><\/pre>\n<\/li>\n<li>Add [C:\\cygwin\\bin;C:\\cygwin\\usr\\X11R6\\bin] to your Windows PATH env variable<\/li>\n<li>Make some batch files, one for each machine to which you want to connect.  Here&#8217;s an example:\n<pre><code>@echo off\r\nSET DISPLAY=127.0.0.1:0.0\r\nSET CYGWIN_ROOT=\\cygwin\r\nSET RUN=%CYGWIN_ROOT%\\bin\\run -p \/usr\/X11R6\/bin\r\nSET PATH=.;%CYGWIN_ROOT%\\bin;%CYGWIN_ROOT%\\usr\\X11R6\\bin;%PATH%\r\nSET XAPPLRESDIR=\/usr\/X11R6\/lib\/X11\/app-defaults\r\nSET XCMSDB=\/usr\/X11R6\/lib\/X11\/Xcms.txt\r\nSET XKEYSYMDB=\/usr\/X11R6\/lib\/X11\/XKeysymDB\r\nSET XNLSPATH=\/usr\/X11R6\/lib\/X11\/locale\r\n\r\nc:\r\ncd C:\\cygwin\\usr\\X11R6\\bin\r\n\r\n%RUN% xterm -e 'ssh <strong>user@machine<\/strong>'<\/code><\/pre>\n<\/li>\n<li>Run the X server (via startxwin.sh or whatever)<\/li>\n<li>Call the batch files to connect!<\/li>\n<\/ul>\n<p>You can also set up shortcuts for ssh via bash in the standard Windows console, or in an rxvt terminal, if you install that.<\/p>\n<p>Or just use putty.  :><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cygwin\/X can do a lot, including giving you a nice xterm for your Windows-to-linux ssh sessions. But you&#8217;d think it would be easier&#8230;<\/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":[10,2],"tags":[98,84,97],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","category-chatter","tag-cygwin","tag-putty","tag-ssh"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-2J","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/169","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=169"}],"version-history":[{"count":1,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/169\/revisions\/1167"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}