<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>マルクのブロッグ &#187; putty</title> <atom:link href="http://b.cpalm.org/tag/putty/feed/" rel="self" type="application/rss+xml" /><link>http://b.cpalm.org</link> <description>馬魯酷+單車+Linux+PSP+3DS+PSVita</description> <lastBuildDate>Mon, 05 Dec 2011 08:34:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>PuTTY 0.60 for Linux 安裝</title><link>http://b.cpalm.org/2010/11/putty-0-60-for-linux-%e5%ae%89%e8%a3%9d/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=putty-0-60-for-linux-%25e5%25ae%2589%25e8%25a3%259d</link> <comments>http://b.cpalm.org/2010/11/putty-0-60-for-linux-%e5%ae%89%e8%a3%9d/#comments</comments> <pubDate>Fri, 05 Nov 2010 04:00:55 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[RHEL]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[putty]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=817</guid> <description><![CDATA[PuTTY 0.60 for Linux 安裝 已測試 OS: RHEL 5.5 x64，Fedora 10 x64， PuTTY Download Page. 下載 putty 的 source 檔 http://tartarus.org/~simon/putty-snapshots/putty.tar.gz 再來進行解壓縮 tar zxvf putty-0.60-2010-11-04.tar.gz 切換到 putty 的目錄 下 cd putty-0.60-2010-11-04/unix 進行編譯 ./configure &#38;&#38; make &#38;&#38; make install 接下按 Alt+F2 輸入 putty 即可。 Putty Linux 版權宣告 在 Linux 下，使用 Putty 連到 com1 連線到 Switch 裡的 [...]]]></description> <content:encoded><![CDATA[<p><strong>PuTTY 0.60 for Linux 安裝</strong></p><p><br
class="spacer_" /></p><p>已測試 OS: RHEL 5.5 x64，Fedora 10 x64，</p><p><strong><br
/> </strong></p><p><a
href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY Download Page</a>.</p><p>下載 putty 的 source 檔</p><p><a
href="http://tartarus.org/~simon/putty-snapshots/putty.tar.gz">http://tartarus.org/~simon/putty-snapshots/putty.tar.gz</a></p><p><br
class="spacer_" /></p><p>再來進行解壓縮</p><blockquote><p>tar zxvf putty-0.60-2010-11-04.tar.gz</p><p><span
id="more-817"></span><br
class="spacer_" /></p></blockquote><p>切換到 putty 的目錄 下</p><blockquote><p>cd putty-0.60-2010-11-04/unix</p><p><br
class="spacer_" /></p></blockquote><p>進行編譯</p><blockquote><p>./configure &amp;&amp; make &amp;&amp; make install</p><p><br
class="spacer_" /></p></blockquote><p><br
class="spacer_" /></p><p>接下按 Alt+F2 輸入 putty 即可。</p><p><br
class="spacer_" /></p><p>Putty Linux 版權宣告</p><p><strong><a
href="../wp-content/uploads/2010/11/putty_060_about.png"></a><a
href="http://b.cpalm.org/wp-content/uploads/2010/11/putty_060_about.png"><img
class="alignnone size-full wp-image-822" title="putty_060_about" src="http://b.cpalm.org/wp-content/uploads/2010/11/putty_060_about.png" alt="" width="387" height="164" /></a><br
/> </strong></p><p><br
class="spacer_" /></p><p>在 Linux 下，使用 Putty 連到 com1</p><p><strong><a
href="http://b.cpalm.org/wp-content/uploads/2010/11/putty_com1.png"><img
class="alignnone size-full wp-image-823" title="putty_com1" src="http://b.cpalm.org/wp-content/uploads/2010/11/putty_com1.png" alt="" width="587" height="539" /></a></strong></p><p><br
class="spacer_" /></p><p><strong>連線到 Switch 裡的 console 畫面<br
/> </strong></p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/11/ttyS0_console.png"><img
class="alignnone size-full wp-image-826" title="ttyS0_console" src="http://b.cpalm.org/wp-content/uploads/2010/11/ttyS0_console.png" alt="" width="560" height="369" /></a></p><p>putty 預設 ssh 的主畫面</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/11/putty_main.png"><img
class="alignnone size-full wp-image-824" title="putty_main" src="http://b.cpalm.org/wp-content/uploads/2010/11/putty_main.png" alt="" width="587" height="539" /></a></p><p><br
class="spacer_" /></p><p>Telnet 連線方式</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/11/putty_telnet.png"><img
class="alignnone size-full wp-image-825" title="putty_telnet" src="http://b.cpalm.org/wp-content/uploads/2010/11/putty_telnet.png" alt="" width="587" height="539" /></a></p><p><br
class="spacer_" /></p><p><br
class="spacer_" /></p><p><br
class="spacer_" /></p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/11/putty-0-60-for-linux-%e5%ae%89%e8%a3%9d/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Reverse SSH 從家中 PC 反向連回公司 PC 的 SSHD</title><link>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reverse-ssh-%25e5%25be%259e%25e5%25ae%25b6%25e4%25b8%25ad-pc-%25e5%258f%258d%25e5%2590%2591%25e9%2580%25a3%25e5%259b%259e%25e5%2585%25ac%25e5%258f%25b8-pc-%25e7%259a%2584-sshd</link> <comments>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/#comments</comments> <pubDate>Tue, 20 Jul 2010 00:05:16 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[軟體]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Port Forward]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[Reserve SSH]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=572</guid> <description><![CDATA[參考了 哇哇 的文章 :  http://portable.easylife.tw/2043 於是有了下列筆記產生。 安裝 Copssh 3.1.1 http://sourceforge.net/projects/sereds/files/Copssh/3.1.1/Copssh_3.1.1_Installer.zip/download 1.將 Copssh_3.1.1_Installer.zip 解壓縮後執行安裝 2.我的安裝路徑在 C:\Apps\ICW\ , 接下來 SvcCOPSSH 服務帳號的密碼(可自訂)，直接按下一步繼續然後完成安裝之前，會彈一個警告視窗說 Copssh 預設是不會有任意使用者可以登入，必須要啟動使用者。 接下來 (1. Active User) -&#62; 選擇 Administrator -&#62; /bin/false， 因為不用登入所以選 /bin/false，如果要用 winscp 傳檔案就改成 /bin/bash，所以這樣子就可以了。 接下是輸入 PassPhrase 。 終於完成了。 接下來 WINDOWS 7 的警告，可以忽略不用管它。 3.由於 Copssh 自動幫我們建立的 私鑰 及 公鑰，似乎是比較高等級的加密演算法(DES-EDE3-CBC)，故 myentunnel 會有使用上的問題，所以另外使用 puttygen.exe，重新建立 公鑰給 Copssh，私鑰給 myentunnel。 [...]]]></description> <content:encoded><![CDATA[<p>參考了 哇哇 的文章 :  http://portable.easylife.tw/2043</p><p>於是有了下列筆記產生。</p><p>安裝 Copssh 3.1.1</p><p>http://sourceforge.net/projects/sereds/files/Copssh/3.1.1/Copssh_3.1.1_Installer.zip/download</p><p>1.將 Copssh_3.1.1_Installer.zip 解壓縮後執行安裝</p><p>2.我的安裝路徑在 C:\Apps\ICW\ , 接下來 SvcCOPSSH 服務帳號的密碼(可自訂)，直接按下一步繼續然後完成安裝之前，會彈一個警告視窗說 Copssh 預設是不會有任意使用者可以登入，必須要啟動使用者。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/0.Activation_User.png"><img
class="alignnone size-full wp-image-575" title="0.Activation_User" src="http://b.cpalm.org/wp-content/uploads/2010/07/0.Activation_User.png" alt="" width="234" height="197" /></a><span
id="more-572"></span></p><p>接下來 (1. Active User) -&gt; 選擇 Administrator -&gt; /bin/false， 因為不用登入所以選  /bin/false，如果要用 winscp 傳檔案就改成 /bin/bash，所以這樣子就可以了。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-1.Activation_User.png"><img
class="alignnone size-full wp-image-576" title="1-1.Activation_User" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-1.Activation_User.png" alt="" width="513" height="399" /></a></p><p>接下是輸入 PassPhrase 。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-2.Activation_User_Passphrase.png"><img
class="alignnone size-full wp-image-577" title="1-2.Activation_User_Passphrase" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-2.Activation_User_Passphrase.png" alt="" width="513" height="399" /></a></p><p>終於完成了。<br
class="spacer_" /></p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-3.Activation_User_Done.png"><img
class="alignnone size-full wp-image-578" title="1-3.Activation_User_Done" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-3.Activation_User_Done.png" alt="" width="443" height="178" /></a></p><p>接下來 WINDOWS 7 的警告，可以忽略不用管它。<br
class="spacer_" /></p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-4.Activation_User_Comp_Warn.png"><img
class="alignnone size-full wp-image-579" title="1-4.Activation_User_Comp_Warn" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-4.Activation_User_Comp_Warn.png" alt="" width="434" height="356" /></a></p><p>3.由於 Copssh 自動幫我們建立的 私鑰 及 公鑰，似乎是比較高等級的加密演算法(DES-EDE3-CBC)，故 myentunnel 會有使用上的問題，所以另外使用 puttygen.exe，重新建立 公鑰給 Copssh，私鑰給 myentunnel。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/Couldnt_Load_Private_Key.png"><img
class="alignnone size-full wp-image-581" title="Couldnt_Load_Private_Key" src="http://b.cpalm.org/wp-content/uploads/2010/07/Couldnt_Load_Private_Key.png" alt="" width="482" height="178" /></a></p><p>4.用 puttygen.exe 產生 公鑰及私鑰，將公鑰(綠色框框)複製到 C:\Apps\ICW\home\Administrator\.ssh\authorized_keys 並取代原先的內容，然後再選 Save Private Key(黃色框框) 把檔案存成 *-keyfile.ppk (* 字是指 myentunnel profile name) 給 myentunnel 使用。Key Phassphrase (紅色框框) 請務必要輸入，因為會用到及安全性因素。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/puttygen_usage.png"><img
class="alignnone size-full wp-image-582" title="puttygen_usage" src="http://b.cpalm.org/wp-content/uploads/2010/07/puttygen_usage.png" alt="" width="493" height="477" /></a><br
class="spacer_" /></p><p>5.NB(公司) 的 myentunnel 的設定: 在 tunnel -&gt; Remote 輸入 192.168.111.200:5577:10.11.22.33:22 -&gt; Save 即可。</p><p>6.Server 端: 會出現 (192.168.111.200:5577  &lt;- 這個不會出現在 SERVER上 )  -&gt; 0.0.0.0:5577 (Listen) 的部份，代表已成功將公司 PC 的 Copssh 的服務對應到家中的 Server 上。</p><p>7.與 Server端同網段的 PC 的 myentunnel 的設定: Settting -&gt; Server: 192.168.111.200 , Port: 5577 ,Username : Administrator(使用者名稱大小寫請注意), Passphrase: 就看你高興囉，但是這個一定要設。 再來切換到 Tunnel -&gt; Local -&gt; 9911:10.11.22.44:3389 (這是你要遙控的 NB 的 IP) -&gt; Save 即可。</p><p>PS. SSHD Server (公司端) 跟被遙控的 PC 不可以是同一台。為什麼不能？目前無解。但是，就是不能同一台，如果有人有答案，可以跟我分享嗎？</p><p>8.再來用遠端桌面連線輸入 127.0.0.1:9911 即可連線。</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用</title><link>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e7%2594%25a8-puttygen-exe-%25e5%2581%259a-key-%25e7%25b5%25a6-myentunneltomato-sshd-%25e4%25bd%25bf%25e7%2594%25a8</link> <comments>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/#comments</comments> <pubDate>Wed, 05 Aug 2009 00:00:50 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[ASUS RT-N16]]></category> <category><![CDATA[TomatoUSB]]></category> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[Asus WL-520GU]]></category> <category><![CDATA[myentunnel]]></category> <category><![CDATA[Port Forward]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[puttygen]]></category> <category><![CDATA[sshd]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoUSB]]></category> <category><![CDATA[tomatoVPN]]></category> <category><![CDATA[轉埠]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=367</guid> <description><![CDATA[用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用 1. 下載 puttygen.exe ，http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html [點我快速下載] ， 並啟動 puttygen.exe。 2.修改 Number of bits in a generated key 為 2048 → 並點 Generate。 3. 在產生 key 必須移動鼠標作為亂數的種子。 4. 等候 putty key generator 產生 public &#38; private key. 5.藍色框框: 為 public key (公鑰) tomato sshd server : Administration → Admin [...]]]></description> <content:encoded><![CDATA[<h3>用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用</h3><p>1. 下載 puttygen.exe ，http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br
/> <a
href="http://tartarus.org/~simon/putty-snapshots/x86/puttygen.exe">[點我快速下載]</a> ， 並啟動 puttygen.exe。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step1.jpg"><img
class="alignnone size-full wp-image-369" title="Putty_Key_Step1" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step1.jpg" alt="Putty_Key_Step1" width="483" height="470" /></a></p><p><span
id="more-367"></span><br
/> 2.修改 Number of bits in a generated key 為 2048 → 並點 Generate。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step2_bits_type.jpg"><img
class="alignnone size-full wp-image-370" title="Putty_Key_Step2_bits_type" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step2_bits_type.jpg" alt="Putty_Key_Step2_bits_type" width="483" height="470" /></a></p><p>3. 在產生 key 必須移動鼠標作為亂數的種子。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step3_move_your_cursor.jpg"><img
class="alignnone size-full wp-image-371" title="Putty_Key_Step3_move_your_cursor" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step3_move_your_cursor.jpg" alt="Putty_Key_Step3_move_your_cursor" width="483" height="470" /></a></p><p>4. 等候 putty key generator 產生 public &amp; private key.<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step4_Generateing_key.jpg"><img
class="alignnone size-full wp-image-372" title="Putty_Key_Step4_Generateing_key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step4_Generateing_key.jpg" alt="Putty_Key_Step4_Generateing_key" width="483" height="470" /></a></p><p>5.藍色框框: 為 public key (公鑰)<br
/> tomato sshd server : Administration → Admin Access → Authorized Keys 的欄位貼上。<br
/> Linux server: /home/users/.ssh/authorized_keys<br
/> 黃色框框: key comment (金鑰的註解，可註明用途及日期)<br
/> 綠色框框: key passphrase (金鑰的保護密碼，不知道密碼的人，就會無法使用。)<br
/> 紫色框框: Save Public key (儲存公開金鑰，可以不用儲存，只要有私鑰可以再度產生出來。)<br
/> 紅色框框: Save Private key (儲存私人金鑰，此金鑰極為重要，不可亂丢)</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step5_Generated_public_private_key.jpg"><img
class="alignnone size-full wp-image-373" title="Putty_Key_Step5_Generated_public_private_key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step5_Generated_public_private_key.jpg" alt="Putty_Key_Step5_Generated_public_private_key" width="483" height="470" /></a></p><p>6.Myentunnel: 請存成 keyfile.ppk , 如果有 profile ,ex: cpalm-keyfile.ppk , ( &#8211; ) 減號為檔名分隔符號。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step6_Save_your_Key.jpg"><img
class="alignnone size-full wp-image-374" title="Putty_Key_Step6_Save_your_Key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step6_Save_your_Key.jpg" alt="Putty_Key_Step6_Save_your_Key" width="563" height="386" /></a></p><p>7.(非必要步驟) 把產生的私鑰順便轉成 linux ssh 用的 私鑰格式。<br
/> Conversions → Export OpenSSH key → openssh.ppk 即可。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step7_Save_your_Key_for_linux_ssh_use.jpg"><img
class="alignnone size-full wp-image-375" title="Putty_Key_Step7_Save_your_Key_for_linux_ssh_use" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step7_Save_your_Key_for_linux_ssh_use.jpg" alt="Putty_Key_Step7_Save_your_Key_for_linux_ssh_use" width="482" height="472" /></a></p><p>8. 在 Tomato sshd  的 authroized keys 欄位，貼入公鑰(public key) → Save → Start Now.</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys.jpg"><img
class="alignnone size-full wp-image-377" title="Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys.jpg" alt="Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys" width="579" height="328" /></a><br
/> 如欲轉載，請註明出處，謝謝。</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[分享]如何使用 Pietty/Putty 做 Client Port Forward?</title><link>http://b.cpalm.org/2007/01/%e5%88%86%e4%ba%ab%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-piettyputty-%e5%81%9a-client-port-forward/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%2588%2586%25e4%25ba%25ab%25e5%25a6%2582%25e4%25bd%2595%25e4%25bd%25bf%25e7%2594%25a8-piettyputty-%25e5%2581%259a-client-port-forward</link> <comments>http://b.cpalm.org/2007/01/%e5%88%86%e4%ba%ab%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-piettyputty-%e5%81%9a-client-port-forward/#comments</comments> <pubDate>Mon, 22 Jan 2007 05:55:00 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[軟體]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[pietty]]></category> <category><![CDATA[Port Forward]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[轉埠]]></category> <guid
isPermaLink="false">http://blog.cpalm.org/2007/01/22/%e5%88%86%e4%ba%ab%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-piettyputty-%e5%81%9a-client-port-forward/</guid> <description><![CDATA[概念:在公司內部的電腦 < -> 公司防火牆(ISA Proxy) < -> 有真實 IP 電腦 < -> 內部的電腦 在這中間利用 Pietty/Putty 來建立 Tunnel,注意要用 Key 授權的方式來登入 SSHD Server 喔,不然會有被 TRY 站的危機喔!但用 Key 也會被 Try 站,但是,被 Try 成功的機率會比較小,會安全很多。 0.準備 Pietty下載: http://ntu.csie.org/~piaip/pietty/stable/pietty0327.exe和一台有真實 IP 的 Linux 主機,並有開放 443 Port 的 SSHD Server. Linux 主機的設定我粗略的說一下,因為這個不是本篇文件的教學重點,#vi /etc/ssh/sshd_config加入Port 443#存檔離開#service sshd restart只要用 Pietty 走 443 Port 能連上你的 Linux 主機,那麼本次教學您就能繼續下去囉!另外 [...]]]></description> <content:encoded><![CDATA[<p><span
class="postbody"><span
id="text0">概念:<br
/>在公司內部的電腦 < -> 公司防火牆(ISA Proxy) < -> 有真實 IP 電腦 < -> 內部的電腦</p><p>在這中間利用 Pietty/Putty 來建立 Tunnel,注意要用 Key 授權的方式來<br
/>登入 SSHD Server 喔,不然會有被 TRY 站的危機喔!但用 Key 也會被 Try 站,<br
/>但是,被 Try 成功的機率會比較小,會安全很多。</p><p>0.準備 Pietty<br
/>下載: <a
href="http://ntu.csie.org/%7Epiaip/pietty/stable/pietty0327.exe" target="_blank" class="postlink">http://ntu.csie.org/~piaip/pietty/stable/pietty0327.exe</a><br
/>和一台有真實 IP 的 Linux 主機,並有開放 443 Port 的 SSHD Server.</p><p>Linux 主機的設定我粗略的說一下,因為這個不是本篇文件的教學重點,<br
/>#vi /etc/ssh/sshd_config<br
/>加入<br
/>Port 443<br
/>#存檔離開<br
/>#service sshd restart<br
/>只要用 Pietty 走 443 Port 能連上你的 Linux 主機,<br
/>那麼本次教學您就能繼續下去囉!另外 Pietty 有支援 http proxy,<br
/>所以可以用 http proxy 連線喔!<br
/>另外,要讓 Pietty 不會被 ISA PROXY 給切斷連線<br
/>,請看 Port_Forward_5.jpg 藍框的部份勾選及設定即可。</p><p>最後連線時,請連 127.0.0.1 就可以囉.</span></span></p><p><span
class="genmed">1-1.Connection -> SSH -> X11 (For Linux Server VNC use)<br
/>1-2.將下圖所框選的打勾,並輸入 0 即可。<br
/>PS.這個步驟遠端是 windows 的可以不用做,這個是針對 Xwindow 的 VNC 遙控設定。<br
/></span><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_NuJ8n8Ad5SE/RbRSyrvJg4I/AAAAAAAAAEg/ETwZx-wLR-4/s1600-h/port1.jpg"><img
style="cursor: pointer;" src="http://bp1.blogger.com/_NuJ8n8Ad5SE/RbRSyrvJg4I/AAAAAAAAAEg/ETwZx-wLR-4/s400/port1.jpg" alt="" id="BLOGGER_PHOTO_ID_5022730515112362882" border="0" /></a></p><p><span
class="genmed">2-1.L5900: 選擇 Local, Source Port:輸入 5900<br
/>2-2.192.168.1.11:5900: 在 Destination 的地方輸入 192.168.1.11:5900 即可<br
/>(192.168.1.11 是你要連內部的那台電腦的 IP,5900 是那台電腦的 Port 號)<br
/>3.按一下 Add 喔.<br
/></span><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_NuJ8n8Ad5SE/RbRTWbvJg5I/AAAAAAAAAEo/QF_Hns0CdFc/s1600-h/port2.jpg"><img
style="cursor: pointer;" src="http://bp0.blogger.com/_NuJ8n8Ad5SE/RbRTWbvJg5I/AAAAAAAAAEo/QF_Hns0CdFc/s400/port2.jpg" alt="" id="BLOGGER_PHOTO_ID_5022731129292686226" border="0" /></a></p><p><span
class="genmed">3.最後完成必須有 L5900 的設定即可。(R5900 不用設定)<br
/>不管公司怎麼擋,只要你有上網權限(有開放 443 PORT),你就能完成如 VNC 遠端遙控的工作囉。<br
/>不過要是遇上了 layer-7 的防火牆，還是一樣沒法子通過。<br
/></span><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_NuJ8n8Ad5SE/RbRUPbvJg6I/AAAAAAAAAEw/JjyFCMMZjkM/s1600-h/port3.jpg"><img
style="cursor: pointer;" src="http://bp0.blogger.com/_NuJ8n8Ad5SE/RbRUPbvJg6I/AAAAAAAAAEw/JjyFCMMZjkM/s400/port3.jpg" alt="" id="BLOGGER_PHOTO_ID_5022732108545229730" border="0" /></a></p><p><span
class="genmed">4.請依藍框的部份,勾選及輸入設定即可。<br
/></span><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_NuJ8n8Ad5SE/RbRUrLvJg7I/AAAAAAAAAE4/dFGa5QKlm1Q/s1600-h/port4.jpg"><img
style="cursor: pointer;" src="http://bp3.blogger.com/_NuJ8n8Ad5SE/RbRUrLvJg7I/AAAAAAAAAE4/dFGa5QKlm1Q/s400/port4.jpg" alt="" id="BLOGGER_PHOTO_ID_5022732585286599602" border="0" /></a></p><p>5.最後開啟 VNC Viewer 進行連線時，請輸入 localhost 就可以連線了。</p><p>6.新增加一個對外連線的埠口，可以直接對應對外的 proxy 的主機。<br
/>在此的範例是為 L88 → proxy.hinet.net:80<br
/>就可以轉出去了，不用在同一台主機上架一台 proxy 了。<br
/>(R88 → proxy.hinet.net:80 < -- 可以不用設。) <a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_NuJ8n8Ad5SE/SBnzJtuwpTI/AAAAAAAAAH0/YZe5WcTzesI/s1600-h/putty_port_forward.jpg"><img
style="cursor: pointer;" src="http://bp1.blogger.com/_NuJ8n8Ad5SE/SBnzJtuwpTI/AAAAAAAAAH0/YZe5WcTzesI/s400/putty_port_forward.jpg" alt="" id="BLOGGER_PHOTO_ID_5195450993368671538" border="0" /></p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2007/01/%e5%88%86%e4%ba%ab%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-piettyputty-%e5%81%9a-client-port-forward/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
