<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: dsh：分布式 shell</title>
	<atom:link href="http://linuxtoy.org/archives/dsh.html/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxtoy.org/archives/dsh.html</link>
	<description>LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神，可以点击顶部导航 Contact 按钮进行投稿。</description>
	<pubDate>Thu, 08 Jan 2009 18:12:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: 可冰</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91642</link>
		<dc:creator>可冰</dc:creator>
		<pubDate>Fri, 29 Aug 2008 07:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91642</guid>
		<description>谢谢hmy！
不过我没有成功。
我在我的机器上以root用户执行
ssh -R 20081:127.0.0.1:20083 username@servername
会有提示Warning: remote port forwarding failed for listen port 20081
我想可能是在外网机上的权限不够吧。

然后用内网机试了一下
ssh -R 20081:127.0.0.1:20083 username@local_servername
好像是成功了，但在local_servername上执行
ssh -p 20081 root@127.0.0.1 -v
会有如下提示
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 20081.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

上网查了下，也没能解决这个问题，它是否需要其它额外的设置？</description>
		<content:encoded><![CDATA[<p>谢谢hmy！<br />
不过我没有成功。<br />
我在我的机器上以root用户执行<br />
ssh -R 20081:127.0.0.1:20083 username@servername<br />
会有提示Warning: remote port forwarding failed for listen port 20081<br />
我想可能是在外网机上的权限不够吧。</p>
<p>然后用内网机试了一下<br />
ssh -R 20081:127.0.0.1:20083 username@local_servername<br />
好像是成功了，但在local_servername上执行<br />
ssh -p 20081 root@127.0.0.1 -v<br />
会有如下提示<br />
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003<br />
debug1: Reading configuration data /etc/ssh/ssh_config<br />
debug1: Applying options for *<br />
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 20081.<br />
debug1: Connection established.<br />
debug1: permanently_set_uid: 0/0<br />
debug1: identity file /root/.ssh/identity type -1<br />
debug1: identity file /root/.ssh/id_rsa type -1<br />
debug1: identity file /root/.ssh/id_dsa type -1<br />
ssh_exchange_identification: Connection closed by remote host</p>
<p>上网查了下，也没能解决这个问题，它是否需要其它额外的设置？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hmy</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91529</link>
		<dc:creator>hmy</dc:creator>
		<pubDate>Tue, 26 Aug 2008 12:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91529</guid>
		<description>@可冰
假设外网ip 2.2.2.2,内部ip 192.168.0.1
内部机器先
ssh -R 222:127.0.0.1:22 root@2.2.2.2
然后在2.2.2.2这个机器上执行
ssh -p 222 root@127.0.0.1
就ok了
如果你外部机器不是常开着,你可以让需要在内部机器执行的哪个命令一直循环执行.</description>
		<content:encoded><![CDATA[<p>@可冰<br />
假设外网ip 2.2.2.2,内部ip 192.168.0.1<br />
内部机器先<br />
ssh -R 222:127.0.0.1:22 root@2.2.2.2<br />
然后在2.2.2.2这个机器上执行<br />
ssh -p 222 root@127.0.0.1<br />
就ok了<br />
如果你外部机器不是常开着,你可以让需要在内部机器执行的哪个命令一直循环执行.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 可冰</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91527</link>
		<dc:creator>可冰</dc:creator>
		<pubDate>Tue, 26 Aug 2008 11:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91527</guid>
		<description>请问知不知道有没有反向的SSH？
通常是在内网用ssh连外网机器，假如现在在外网，需要登录到内网机器上测试一些东西，就不行了。想过自己实现一个反向的ssh，在外网机器上开一个服务器，在内网开一个客户端，连上外网的服务器，如果要控制的话，就在外网机器上的服务器shell中执行。如果有现成的话就好了。</description>
		<content:encoded><![CDATA[<p>请问知不知道有没有反向的SSH？<br />
通常是在内网用ssh连外网机器，假如现在在外网，需要登录到内网机器上测试一些东西，就不行了。想过自己实现一个反向的ssh，在外网机器上开一个服务器，在内网开一个客户端，连上外网的服务器，如果要控制的话，就在外网机器上的服务器shell中执行。如果有现成的话就好了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cssh：cluster 管理工具 (ssh) &#124; 搜我收藏</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91325</link>
		<dc:creator>cssh：cluster 管理工具 (ssh) &#124; 搜我收藏</dc:creator>
		<pubDate>Fri, 22 Aug 2008 03:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91325</guid>
		<description>[...] 同 dsh 类似，通过 ssh 同时给多台机器发命令，不过 cssh [...]</description>
		<content:encoded><![CDATA[<p>[...] 同 dsh 类似，通过 ssh 同时给多台机器发命令，不过 cssh [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giv</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91297</link>
		<dc:creator>giv</dc:creator>
		<pubDate>Thu, 21 Aug 2008 04:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91297</guid>
		<description>@hmy
噢, 这样, 谢谢</description>
		<content:encoded><![CDATA[<p>@hmy<br />
噢, 这样, 谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hmy</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91293</link>
		<dc:creator>hmy</dc:creator>
		<pubDate>Thu, 21 Aug 2008 03:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91293</guid>
		<description>恩，dsh是利用ssh,安全性还是ssh来保障，我也是用的ssh-agent,不过加了一个keychian软件，这个软件可以避免重复输入ssh证书的密码。</description>
		<content:encoded><![CDATA[<p>恩，dsh是利用ssh,安全性还是ssh来保障，我也是用的ssh-agent,不过加了一个keychian软件，这个软件可以避免重复输入ssh证书的密码。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giv</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91290</link>
		<dc:creator>giv</dc:creator>
		<pubDate>Thu, 21 Aug 2008 03:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91290</guid>
		<description>@hmy
你的意思是说用无密码保护的证书?
是这样的, 我们一般都是用有密码保护的证书, 为了便于在机群上工作, 通常是开一个ssh-agent, 然后用ssh-add添加一个证书, 这样ssh到其他服务器时就不用再输入证书密码了
我想知道dsh是怎么做来保证安全性的?</description>
		<content:encoded><![CDATA[<p>@hmy<br />
你的意思是说用无密码保护的证书?<br />
是这样的, 我们一般都是用有密码保护的证书, 为了便于在机群上工作, 通常是开一个ssh-agent, 然后用ssh-add添加一个证书, 这样ssh到其他服务器时就不用再输入证书密码了<br />
我想知道dsh是怎么做来保证安全性的?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hmy</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91287</link>
		<dc:creator>hmy</dc:creator>
		<pubDate>Thu, 21 Aug 2008 03:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91287</guid>
		<description>@giv
ssh用证书登录，不用密码。证书登录比密码安全很多。</description>
		<content:encoded><![CDATA[<p>@giv<br />
ssh用证书登录，不用密码。证书登录比密码安全很多。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giv</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91285</link>
		<dc:creator>giv</dc:creator>
		<pubDate>Thu, 21 Aug 2008 02:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91285</guid>
		<description>dsh是怎么避免每台机器上的口令输入的呢? ssh-agent还是?</description>
		<content:encoded><![CDATA[<p>dsh是怎么避免每台机器上的口令输入的呢? ssh-agent还是?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coneagoe</title>
		<link>http://linuxtoy.org/archives/dsh.html#comment-91274</link>
		<dc:creator>coneagoe</dc:creator>
		<pubDate>Thu, 21 Aug 2008 00:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=2315#comment-91274</guid>
		<description>见识了，我用不到。</description>
		<content:encoded><![CDATA[<p>见识了，我用不到。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
