{"id":251,"date":"2015-05-11T15:56:18","date_gmt":"2015-05-11T22:56:18","guid":{"rendered":"http:\/\/mrnguyen.org\/?p=251"},"modified":"2015-05-11T16:15:28","modified_gmt":"2015-05-11T23:15:28","slug":"cygwin-remote-ssh","status":"publish","type":"post","link":"http:\/\/mrnguyen.org\/?p=251","title":{"rendered":"cygwin remote ssh"},"content":{"rendered":"<p>Install the following Cygwin packages (rerun setup if necessary &#8212; you can add packages after you have already installed Cygwin).<\/p>\n<p>    Admin &#8211;> cygrunsrv<br \/>\n    Net &#8211;> openssh<\/p>\n<p>Open a new bash shell window and run the SSH configure stuff.<\/p>\n<p>    ssh-host-config -y<\/p>\n<p>This step will create necessary configuration files, a priviledge separation user and necessary directories.<\/p>\n<p>When prompted with &#8220;CYGWIN=&#8221; type for following:<\/p>\n<p>    tty ntsec<\/p>\n<p>Now you are ready to start the service.<\/p>\n<p>    cygrunsrv -S sshd<br \/>\nFinished<\/p>\n<p>#################################<br \/>\n#################################<\/p>\n<p>How to ssh from 1.1.1.1 to 2.2.2.2 without entering password<\/p>\n<p>on 1.1.1.1<br \/>\n   ssh-keygen -t rsa<br \/>\n   ssh glgpslib@2.2.2.2 mkdir -p .ssh<br \/>\n   cat .ssh\/id_rsa.pub | ssh glgpslib@2.2.2.2 &#8216;cat >> .ssh\/authorized_keys&#8217;<br \/>\n   ssh glgpslib@2.2.2.2 &#8220;chmod 700 .ssh; chmod 640 .ssh\/authorized_keys&#8221;<\/p>\n<p>Now, from 1.1.1.1, glgpslib can ssh glgpslib@1.1.1.1 &#8216;pwd&#8217; without entering a password<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install the following Cygwin packages (rerun setup if necessary &#8212; you can add packages after you have already installed Cygwin). Admin &#8211;> cygrunsrv Net &#8211;> openssh Open a new bash shell window and run the SSH configure stuff. ssh-host-config -y This step will create necessary configuration files, a priviledge separation user and necessary directories. When<a class=\"sup-readmore\" href=\"http:\/\/mrnguyen.org\/?p=251\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_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":""},"categories":[10],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-posts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":2,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":253,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions\/253"}],"wp:attachment":[{"href":"http:\/\/mrnguyen.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mrnguyen.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}