<?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>wd and cc &#187; urxvt</title>
	<atom:link href="http://wdicc.com/tag/urxvt/feed/" rel="self" type="application/rss+xml" />
	<link>http://wdicc.com</link>
	<description>Happy every day...</description>
	<lastBuildDate>Wed, 01 Feb 2012 03:27:00 +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>使用公匙密匙来登录ssh</title>
		<link>http://wdicc.com/public-key-in-ssh/</link>
		<comments>http://wdicc.com/public-key-in-ssh/#comments</comments>
		<pubDate>Tue, 26 Sep 2006 03:19:35 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[urxvt]]></category>
		<category><![CDATA[公匙]]></category>
		<category><![CDATA[密匙]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2006/09/26/249/</guid>
		<description><![CDATA[ssh一种更加安全的登录方式是使用rsa/dsa方式来做验证。密码口令很可能被猜出来，但是用dsa方式验证的ssh，除非他弄到你的私匙，否则肯定是安全的。 ssh-keygen命令可以用来生成rsa/dsa方式的公匙密匙。 ssh-keygen或者ssh-keygen -t rsa生成rsa方式的密匙。ssh-keygen -d 或者 ssh-keygen -t dsa生成dsa方式的密匙。具体rsa和dsa的区别看 这里 。 上面的命令会在~/.ssh文件夹中生成公匙（id_*sa.pub）和密匙（id_*sa），将pub文件中的内容copy到远程服务器你的home目录下面的.ssh目录中的authorized_keys[2]这个文件中，有没有最后的那个2要看你用的是ssh1还是ssh2方式，通常都有2。 然后就是远程服务器的这些文件需要有正确的权限，.ssh目录是700，authorized_keys2文件是644。 此后再登录服务器的时候应该就不需要输入密码了。 有一个小tip，就是给服务器的ip设置一个好记的形式，那么多的ip记住不容易阿，而且每次还得一个一个输入。具体方法就是修改hosts文件，添加类似下面的内容就可以了，相当于自己做了一个dns，呵呵。 #销售server 218.x.2.128 s128 xs xiaoshou #db server 218.x.23.189 s189 db oracle 这样，以后访问s128或者s189就可以了，当然后面的xs、xiaoshou、db、oracle也都是别名，都可以用来访问。 还有一个tip，是关于term的。如果用的是urxvt，访问的远程服务器的时候可能会遇到“unknow terminal : rxvt-unicode” 类似的错误，如果出现了类似错误，会导致在服务器端vim和ls都没有颜色。解决方法是在.Xdefaults文件中添加URxvt.termName: xterm，或者.bash_profile里面自己设置一下TERM类型。]]></description>
			<content:encoded><![CDATA[<p>ssh一种更加安全的登录方式是使用rsa/dsa方式来做验证。密码口令很可能被猜出来，但是用dsa方式验证的ssh，除非他弄到你的私匙，否则肯定是安全的。</p>
<p>ssh-keygen命令可以用来生成rsa/dsa方式的公匙密匙。<br />
ssh-keygen或者ssh-keygen -t rsa生成rsa方式的密匙。ssh-keygen -d 或者 ssh-keygen -t dsa生成dsa方式的密匙。具体rsa和dsa的区别看 <a href="http://www-128.ibm.com/developerworks/cn/linux/security/openssh/part1/index.html">这里</a> 。</p>
<p>上面的命令会在~/.ssh文件夹中生成公匙（id_*sa.pub）和密匙（id_*sa），将pub文件中的内容copy到远程服务器你的home目录下面的.ssh目录中的authorized_keys[2]这个文件中，有没有最后的那个2要看你用的是ssh1还是ssh2方式，通常都有2。</p>
<p>然后就是远程服务器的这些文件需要有正确的权限，.ssh目录是700，authorized_keys2文件是644。</p>
<p>此后再登录服务器的时候应该就不需要输入密码了。</p>
<p>有一个小tip，就是给服务器的ip设置一个好记的形式，那么多的ip记住不容易阿，而且每次还得一个一个输入。具体方法就是修改hosts文件，添加类似下面的内容就可以了，相当于自己做了一个dns，呵呵。<br />
#销售server<br />
218.x.2.128 s128 xs xiaoshou<br />
#db server<br />
218.x.23.189 s189 db oracle<br />
这样，以后访问s128或者s189就可以了，当然后面的xs、xiaoshou、db、oracle也都是别名，都可以用来访问。</p>
<p>还有一个tip，是关于term的。如果用的是urxvt，访问的远程服务器的时候可能会遇到“unknow terminal : rxvt-unicode” 类似的错误，如果出现了类似错误，会导致在服务器端vim和ls都没有颜色。解决方法是在.Xdefaults文件中添加URxvt.termName: xterm，或者.bash_profile里面自己设置一下TERM类型。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/public-key-in-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>差不多配置好了urxvt</title>
		<link>http://wdicc.com/urxvt-conf/</link>
		<comments>http://wdicc.com/urxvt-conf/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 01:05:11 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[urxvt]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2006/09/03/241/</guid>
		<description><![CDATA[这]]></description>
			<content:encoded><![CDATA[<p>这</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/urxvt-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

