<?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>Wandsea.com &#187; SSH</title>
	<atom:link href="http://wandsea.com/blog/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://wandsea.com/blog</link>
	<description>好吧..大家都要加油哦～</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:29:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Moto E2 利用 SSH 管理远程计算机</title>
		<link>http://wandsea.com/blog/390.htm</link>
		<comments>http://wandsea.com/blog/390.htm#comments</comments>
		<pubDate>Sun, 15 Feb 2009 09:41:00 +0000</pubDate>
		<dc:creator>Wandsea</dc:creator>
				<category><![CDATA[About Computer]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[E2]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[手机]]></category>
		<category><![CDATA[管理]]></category>

		<guid isPermaLink="false">http://wandsea.com/blog/?p=390</guid>
		<description><![CDATA[这一周把E2刷成了3D的火星包，权限大了就是不一样，感觉越来越像另一台电脑了，我居然用了快两年了才发现可以在自己的电脑上交叉编译好程序然后传到手机上利用Ezxterm运行...... 首先配置... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>这一周把E2刷成了3D的火星包，权限大了就是不一样，感觉越来越像另一台电脑了，我居然用了快两年了才发现可以在自己的电脑上交叉编译好程序然后传到手机上利用Ezxterm运行......</p>
<p>首先配置交叉编译环境，编译putty什么的....</p>
<p>现从it168上下载一个交叉编译库，貌似是<a href="http://moto.it168.com/thread-159801-1-1.html" target="_blank">arm-linux-gcc</a>，复制到位后执行这样一段代码</p>
<blockquote><p><code>#!/bin/bash<br />
export PATH=$PATH:/usr/local/arm/bin</code></p></blockquote>
<p>之后就可以进行编译了，操作都是差不多的</p>
<blockquote><p><code>./configure --base=arm-linux --prefix=/home/user/putty</p>
<p>make</p>
<p>make install</code></p></blockquote>
<p><img class="size-full wp-image-391" title="MotoE2 SSH 管理远程计算机－1" src="http://wandsea.com/blog/wp-content/uploads/2009/02/snap_2.png" alt="MotoE2 SSH 管理远程计算机－1" width="201" height="268" align=right /><br />
前几天编译过openssh，不过这程序体积太庞大了，还有好多依赖.....</p>
<p>这样就会看到plink，psftp等等东西，现在所需要的，貌似只有plink，其他的大家也可以试试～</p>
<p>把plink放到/bin里，安装3D的ezxterm，然后就可以在ezxterm里执行plink了</p>
<blockquote><p><code>plink wandsea@192.168.16.1</code></p></blockquote>
<p>当然咯，你要连的电脑当然要是开启sshd服务的</p>
<p>除了这样，另一种也是非常有用的，可以先打开任何一个需要联网的JAVA应用，然后后台运行，这样就能保持一个internet连接，然后就可以用plink管理互联网上的服务器了，很方便，也很安全～</p>
<p>还有一个，可以用花生壳给自己的电脑进行动态域名解析，然后就可以用手机执行命令行程序了，Maxima貌似是可以的，可以求导函数...囧－－就是edge有点延迟..E2超有爱.....</p>
<p>关于打不出来的符号，貌似只能背下ascii码了........要么，重新编译下ezxterm也可行...</p>
<p>提供个编译好的plink吧，<code>http://www.rayfile.com/files/95a9c838-fb44-11dd-a490-0014221b798a/</code></p>
<hr/><small>Copyright &copy; 2009<br /> 本Blog采用 知识共享署名-非商业性使用-相同方式共享 许可协议进行许可 轉載請署名 <br/> </small>
<a href="http://wandsea.com/blog/390.htm#comments" title="to the comments"><font color="red">加油！已经盖到10楼啦</font></a><small> － 
<a href="http://Wandsea.com/blog/" title="http://Wandsea.com/blog/">去看看我的Blog？</a> － 
<a href="http://wandsea.com/blog/never-forget" title="http://wandsea.com/blog/never-forget">民主歌声献中华 20年</a><br/> </small></p><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://wandsea.com/blog/370.htm" title="新年第一文－ubuntu通过cmnet上网">新年第一文－ubuntu通过cmnet上网</a> (8)</li><li><a href="http://wandsea.com/blog/322.htm" title="Moto E2 安装手机 Gmail">Moto E2 安装手机 Gmail</a> (10)</li><li><a href="http://wandsea.com/blog/428.htm" title="Ubuntu下给照片批量添加EXIF信息水印">Ubuntu下给照片批量添加EXIF信息水印</a> (8)</li><li><a href="http://wandsea.com/blog/417.htm" title="Ubuntu 9.04 新通知机制 -Notify-send ">Ubuntu 9.04 新通知机制 -Notify-send </a> (1)</li><li><a href="http://wandsea.com/blog/399.htm" title="WandShare链接分享V0.1">WandShare链接分享V0.1</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://wandsea.com/blog/390.htm/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Ubuntu Desktop 配置简单Web服务器</title>
		<link>http://wandsea.com/blog/363.htm</link>
		<comments>http://wandsea.com/blog/363.htm#comments</comments>
		<pubDate>Sun, 21 Dec 2008 13:07:13 +0000</pubDate>
		<dc:creator>Wandsea</dc:creator>
				<category><![CDATA[About Computer]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[花生壳]]></category>

		<guid isPermaLink="false">http://由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件…电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因….Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSHblockquotesudoapt-getinstallapache2php5mysqlphpmyadminopenssh-servervsftpdmysql-commonmysql-server-5.0/blockquote记得好象是这</guid>
		<description><![CDATA[由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件… 电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因…. Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSH sudo apt-get ins... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>由于调试WP需要，最终决定还是在自己的可怜的本本上装上服务器软件…</p>
<p>电驴经常整天开着..学校老封IP连DH又太慢…发挥电能的最大功效也是原因….</p>
<p>Apache2+Vsftpd+PHP5+MySQL+PHPMyAdmin+SSH</p>
<blockquote><p>sudo apt-get install apache2 php5mysql phpmyadmin openssh-server vsftpd mysql-common mysql-server-5.0</p></blockquote>
<p>记得好象是这几个……</p>
<p>先配置Apache，在 /etc/apache2/sites-available 找到 default 这个文件</p>
<p>最前面一段修改如下</p>
<blockquote><p>ServerName 127.0.1.1<br />
ServerAdmin wandsea@gmail.com<br />
DocumentRoot /home/wandsea/www/<br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
&lt;Directory /home/wandsea/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride All<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>要改的好像只有网站目录,ServerName 和 AllowOverride All</p>
<p>然后把网站文件夹权限设置好，777/666貌似都可以吧…</p>
<p>然后配置Vsftpd，打开/etc/vsftpd.conf</p>
<p>反注释掉 local_enable=YES &amp; write_enable=YES</p>
<p>修改 anonymous_enable=NO</p>
<p>其余的好像就没有什么了…..</p>
<p>现在打开localhost，应该就有网站目录中的文件了</p>
<p>然后在路由器中设置花生壳，把自己的本本做DMZ主机</p>
<p>SSH使用请参照<a title="Permanent Link to DreamHost’ SSH Tunnel" rel="bookmark" href="../../246.htm" target="_blank">DreamHost SSH Tunnel</a>一文，以后在学校上QQ就方便了^^</p>
<p>Update：服务器默认是自动启动的..所以，系统－系统管理－服务，把自启动关闭，新建两个文件，start_webserver&amp;stop_webserver</p>
<blockquote><p>#/bin/bash<br />
sudo /etc/init.d/apache2 start<br />
sudo /etc/init.d/vsftpd start<br />
sudo /etc/init.d/mysql start</p>
<p>#/bin/bash<br />
sudo /etc/init.d/apache2 stop<br />
sudo /etc/init.d/vsftpd stop<br />
sudo /etc/init.d/mysql stop</p></blockquote>
<p>在桌面建立快捷方式..这样就方便很多</p>
<hr/><small>Copyright &copy; 2009<br /> 本Blog采用 知识共享署名-非商业性使用-相同方式共享 许可协议进行许可 轉載請署名 <br/> </small>
<a href="http://wandsea.com/blog/363.htm#comments" title="to the comments"><font color="red">加油！已经盖到0楼啦</font></a><small> － 
<a href="http://Wandsea.com/blog/" title="http://Wandsea.com/blog/">去看看我的Blog？</a> － 
<a href="http://wandsea.com/blog/never-forget" title="http://wandsea.com/blog/never-forget">民主歌声献中华 20年</a><br/> </small></p><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://wandsea.com/blog/471.htm" title="Ubuntu&#038;Wine運行星際爭霸2">Ubuntu&#038;Wine運行星際爭霸2</a> (9)</li><li><a href="http://wandsea.com/blog/469.htm" title="Thinkpad T410 &#038; Ubuntu 10.04 無線網卡自動掉線問題">Thinkpad T410 &#038; Ubuntu 10.04 無線網卡自動掉線問題</a> (4)</li><li><a href="http://wandsea.com/blog/467.htm" title="又一篇Ubuntu下Texlive2009安装笔记..">又一篇Ubuntu下Texlive2009安装笔记..</a> (2)</li><li><a href="http://wandsea.com/blog/465.htm" title="Thinkpad T410 Ubuntu 安装笔记">Thinkpad T410 Ubuntu 安装笔记</a> (7)</li><li><a href="http://wandsea.com/blog/446.htm" title="Ubuntu 9.10 (RC) 音量过大 Bug修复">Ubuntu 9.10 (RC) 音量过大 Bug修复</a> (4)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://wandsea.com/blog/363.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DreamHost&#039; SSH Tunnel</title>
		<link>http://wandsea.com/blog/246.htm</link>
		<comments>http://wandsea.com/blog/246.htm#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:19:39 +0000</pubDate>
		<dc:creator>Wandsea</dc:creator>
				<category><![CDATA[About Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[站务]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[我又換空間了，不過這次終于從免費的虛擬主機換成收費的合租DreamHost了，價錢不貴，應該夠用了，在這里贊一下DH啦，功能確實十分強勁啊，域名服務器，空間，Shell權限，郵箱，就是貌似沒... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>我又換空間了，不過這次終于從免費的虛擬主機換成收費的合租DreamHost了，價錢不貴，應該夠用了，在這里贊一下DH啦，功能確實十分強勁啊，域名服務器，空間，Shell權限，郵箱，就是貌似沒有SOCKET，但好像有替代的吧，過段時間研究。</p>
<p>先用DH的網頁ftp，恩，可以用它翻<span style="color: #ffffff;">/</span>墻下載以前的空間的文件，速度也很快，可以壓縮解壓縮，很好啊，然后再連上SSH，速度和To<span style="color: #ffffff;">/</span>r完全不是一個檔次的啊，很快很快，感覺不到是在翻<span style="color: #ffffff;">/</span>墻，把以前的Mysql備份回來，再覆蓋到現在的，用了不到半個小時。</p>
<p>但貌似DH的空間并沒有想象的那么快啊～</p>
<p>切入正題，SSH TUNNEL~</p>
<p>關于SSH TUNNEL，請自行查閱<a title="http://zh.wikipedia.org/w/index.php?title=SSH&amp;variant=zh-cn" href="http://zh.wikipedia.org/w/index.php?title=SSH&amp;variant=zh-cn">SSH (By WIKIPEDIA)</a>，梯子最近不用自備。</p>
<p>如果是Windows系統，先安裝一個<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> 。</p>
<p>SSH--&gt;Tunnels首先添加端口，在Source Port中選擇一個未使用的端口號，再選中下面的Dynamic，按ADD添加。</p>
<p>這就是以后你要使用SSH通道時的端口號。</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty2-133f4c9d-421f-4ca1-a2b5-68052c9945b9.jpg" border="0" alt="putty2" width="455" height="435" /><span id="more-246"></span></p>
<p>Session 在Host Name中輸入你的SSH服務器地址，下面類型選SSH,端口一般是22, 然后保存。</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty1-d44ccaca-4279-41d2-a413-ef321e45f84d.jpg" border="0" alt="putty1" width="461" height="442" /></p>
<p>雙擊你剛才建立的服務器</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty3-deef4bee-acdf-406f-8050-070bcd56709f.jpg" border="0" alt="putty3" width="500" height="236" /></p>
<p>然后最小化就可以使用代理了，配置呢，就說說Firefox吧，我用的是Foxproxy，代理服務器是本機，端口是剛才設的~</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty4-2e98fbab-6a97-4dce-90f1-0bb8aee28a9a.jpg" border="0" alt="putty4" width="500" height="62" /></p>
<p>然后就可以使用這個SSH通道快速得瀏覽互聯網了（PS：是互聯網哦）～</p>
<p>Linux下打開SSH通道我還沒有試過，聽說只需要在Bash下打一條命令</p>
<p>#ssh -L 本地端口:localhost:* SSH服務器地址</p>
<p>如#ssh -L 7070:localhost:22 renault.dreamhost.com</p>
<p>恩，明天就試試～</p>
<p>最后再來2張</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty5-98799a98-9560-4a2b-a064-c99f86e02c62.jpg" border="0" alt="putty5" width="504" height="301" /></p>
<p>呃這就是emacs啊～哪天無聊看看能不能改改配色方案，搞不好可以gdb的，試試～</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://wandsea.com/blog/wp-content/uploads/2008/08/windowslivewriterdreamhostsshtunnel-d3putty6-d84a040b-08e3-466e-bfb4-39cb99e07ebc.jpg" border="0" alt="putty6" width="504" height="217" /></p>
<p>這個APT擁有超級牛力= =，這也可以打開，就是沒有超級牛的su密碼～</p>
<p>因為是合租的，Wget這種狂傷帶寬的就不用了，哈哈～</p>
<hr/><small>Copyright &copy; 2009<br /> 本Blog采用 知识共享署名-非商业性使用-相同方式共享 许可协议进行许可 轉載請署名 <br/> </small>
<a href="http://wandsea.com/blog/246.htm#comments" title="to the comments"><font color="red">加油！已经盖到8楼啦</font></a><small> － 
<a href="http://Wandsea.com/blog/" title="http://Wandsea.com/blog/">去看看我的Blog？</a> － 
<a href="http://wandsea.com/blog/never-forget" title="http://wandsea.com/blog/never-forget">民主歌声献中华 20年</a><br/> </small></p><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://wandsea.com/blog/471.htm" title="Ubuntu&#038;Wine運行星際爭霸2">Ubuntu&#038;Wine運行星際爭霸2</a> (9)</li><li><a href="http://wandsea.com/blog/467.htm" title="又一篇Ubuntu下Texlive2009安装笔记..">又一篇Ubuntu下Texlive2009安装笔记..</a> (2)</li><li><a href="http://wandsea.com/blog/465.htm" title="Thinkpad T410 Ubuntu 安装笔记">Thinkpad T410 Ubuntu 安装笔记</a> (7)</li><li><a href="http://wandsea.com/blog/446.htm" title="Ubuntu 9.10 (RC) 音量过大 Bug修复">Ubuntu 9.10 (RC) 音量过大 Bug修复</a> (4)</li><li><a href="http://wandsea.com/blog/393.htm" title="解决Feedsky 704解析错误问题">解决Feedsky 704解析错误问题</a> (4)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://wandsea.com/blog/246.htm/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
