<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Snooda]]></title> 
<link>http://www.snooda.com/index</link> 
<description><![CDATA[Snooda's Blog]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Snooda]]></copyright>
<item>
<link>http://www.snooda.com/read/</link>
<title><![CDATA[ssh建立反向代理隧道访问内网服务器]]></title> 
<author>snooda &lt;admin@snooda.com&gt;</author>
<category><![CDATA[linux操作系统]]></category>
<pubDate>Sat, 07 Jul 2012 16:02:42 +0000</pubDate> 
<guid>http://www.snooda.com/read/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;今天需要临时展示一个样例站点，上传程序太麻烦，修改起来也不方便，而电信宽带没有公网ip，只能先在电脑上用ssh连接到服务器，在服务器开个端口映射到电脑上。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;运行了ssh -Ng -R "*:2222:*:3333" server<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;发现在服务器端映射端口是成功了，但只是监听在本地。改了半天也不行，百思不得其解。因为之前用过都是成功的。<br/><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;后来发现某些版本的sshd因为安全性考虑，默认只允许监听在本地。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;需要在/etc/ssh/sshd_config里面加一句：<br/>&nbsp;&nbsp;&nbsp;&nbsp;GatewayPorts clientspecified<br/><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;即可<br/>Tags - <a href="http://www.snooda.com/tags/ssh/" rel="tag">ssh</a> , <a href="http://www.snooda.com/tags/%25E7%25BD%2591%25E7%25BB%259C/" rel="tag">网络</a>
]]>
</description>
</item><item>
<link>http://www.snooda.com/read/#blogcomment</link>
<title><![CDATA[[评论] ssh建立反向代理隧道访问内网服务器]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.snooda.com/read/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>