<?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>swigger's BLOG &#187; 软件</title>
	<atom:link href="http://www.swigger.net/archives/category/%e8%bd%af%e4%bb%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://www.swigger.net</link>
	<description>醉卧沙场君莫笑 古来征战几人回</description>
	<lastBuildDate>Tue, 24 Jan 2012 05:34:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>securecrt 中的 ssh-agent比较有意思</title>
		<link>http://www.swigger.net/archives/255.html</link>
		<comments>http://www.swigger.net/archives/255.html#comments</comments>
		<pubDate>Thu, 19 May 2011 17:06:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.swigger.net/?p=255</guid>
		<description><![CDATA[一个偶然的机会，发现我从一台电脑的虚拟机中的ssh可以直接连到我的另一台服务器。 而我并没有在这个虚拟机中配置ssh key。另一台电脑就不行。 它是如何连上去的？ ssh-v查到一段： debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering public key: debug1: Server accepts key: pkalg ssh-rsa blen 279debug1: Authentication succeeded (publickey). 而不行的电脑，信息是这样的： debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Trying private key: /home/swigger/.ssh/id_rsa debug1: Trying private key: /home/swigger/.ssh/id_dsa debug1: Trying [...]]]></description>
			<content:encoded><![CDATA[<p>一个偶然的机会，发现我从一台电脑的虚拟机中的ssh可以直接连到我的另一台服务器。</p>
<p>而我并没有在这个虚拟机中配置ssh key。另一台电脑就不行。</p>
<p>它是如何连上去的？</p>
<p>ssh-v查到一段：</p>
<p>debug1: Authentications that can continue: publickey,password</p>
<p>debug1: Next authentication method: publickey</p>
<p>debug1: Offering public key:</p>
<p>debug1: Server accepts key: pkalg ssh-rsa blen 279debug1: Authentication succeeded (publickey).</p>
<p>而不行的电脑，信息是这样的：</p>
<p>debug1: Authentications that can continue: publickey,password</p>
<p>debug1: Next authentication method: publickey</p>
<p>debug1: Trying private key: /home/swigger/.ssh/id_rsa</p>
<p>debug1: Trying private key: /home/swigger/.ssh/id_dsa</p>
<p>debug1: Trying private key: /home/swigger/.ssh/id_ecdsa</p>
<p>debug1: Next authentication method: password</p>
<p>显然，这个Offering public key:后面又没有东西是最可疑的。找到ssh源代码一看，原来这里本来是要显示一个文件名，但可惜是个空串，再花了点时间查了一下，看代码看的，原来这里有个identity没有文件名，不是从文件加载的，来自一个叫agent的东西</p>
<p>然后就查ssh-agent的相关东西，查这个agent的数据来自哪里，从unix socket查到相关的sshd进程。</p>
<p>然后就搜到了相关的信息，原来：</p>
<p>&nbsp;</p>
<p>securecrt 支持ssh agent forwarding, 不过要在global options中选ssh2打开。</p>
<p>打开后，如果为某个server启用了public key登录，那么相关的key就被securecrt 记录到agent里去了。</p>
<p>通过相关的agent协议，securecrt可以把这个数据提交到在里面运行的ssh, scp等命令，于是啥也没有配置的虚拟机也能直接登到我的目标server了。</p>
<p>不过，我是为server a启用的public key登录，但server b(虚拟机)里也有这个public key的agent记录，这算是bug还是feature呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swigger.net/archives/255.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>做了Perl 5.10.0的chm文档</title>
		<link>http://www.swigger.net/archives/34.html</link>
		<comments>http://www.swigger.net/archives/34.html#comments</comments>
		<pubDate>Sun, 27 Apr 2008 11:58:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.swigger.net/?p=34</guid>
		<description><![CDATA[在 http://perldoc.perl.org/ 上可以看perl的文档。这自然是一件很好的事。 不过我还是比较习惯看chm的文档，比如我要找函数stat的说明，用网页方式的话我要打开浏览器，上到perldoc网站，定位到perlfunc那一页，再找到stat，这个时候可能是需要ctrl+f一下才找得到的，然后再转过去。有了chm文档，就方便了，打开后在index里输入stat回车即可看了。 5.8.8的就先不做了，一般也用不到这些差别。 在这里下载  ]]></description>
			<content:encoded><![CDATA[<p>在 <a href="http://perldoc.perl.org/">http://perldoc.perl.org/</a> 上可以看perl的文档。这自然是一件很好的事。</p>
<p>不过我还是比较习惯看chm的文档，比如我要找函数stat的说明，用网页方式的话我要打开浏览器，上到perldoc网站，定位到perlfunc那一页，再找到stat，这个时候可能是需要ctrl+f一下才找得到的，然后再转过去。有了chm文档，就方便了，打开后在index里输入stat回车即可看了。</p>
<p>5.8.8的就先不做了，一般也用不到这些差别。</p>
<p><a href="http://www.swigger.net/soft/perl510.chm">在这里下载</a></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.swigger.net/archives/34.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

