<?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>only you &#187; key</title>
	<atom:link href="http://onlyn.info/tag/key/feed/" rel="self" type="application/rss+xml" />
	<link>http://onlyn.info</link>
	<description>你，一会看我，一会看云。 我觉得，你看我时很远，你看云时很近。</description>
	<lastBuildDate>Tue, 04 May 2010 08:03:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>制作不用密码可立即登入的 ssh 用户</title>
		<link>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/</link>
		<comments>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 14:32:48 +0000</pubDate>
		<dc:creator>coodar</dc:creator>
				<category><![CDATA[网络应用]]></category>
		<category><![CDATA[随感]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://onlyn.info/?p=163</guid>
		<description><![CDATA[如果在ubuntu下用ssh命令登录主机的话，总是会要求你输入密码，那么有什么法子可以不用密码直接登录呢？ 原先我用的是在主机cpanel的ssh-key manage里，先创建一个key，然后下载private key，放在ubuntu下的~/.ssh目录下，这样即可。 如图： 第二种方法就是在ubuntu本地创建key，然后上传到sever上。 首先，先在 Client 上面创建 Public Key 跟 Private Key 这两把钥匙，利用的指令为 ssh-keygen 这个命令；再来，将 Private Key 放在 Client 上面的家目录，亦即 $HOME/.ssh/ ， 并且修改权限为仅有该 User 可读的状态； 最后，将那把 Public Key 放在任何一个您想要用来登录的主机的 Server 端的某 User 的家目录内之 .ssh/ 里面的认证文件即可完成整个程序。 测试一下。输入 ssh test@linux。 注释：test为你的id。test2是你的ubuntu机器名字。linux就是主机服务器地址了。上图中192.168.0.2是主机ip地址，写域名也行。 两种方法都可以，任选一个。如果你喜欢命令行就用第二种方法吧。呵呵。 可具体参考鸟哥的linux私房菜。 Copyright &#169; 2008 This feed is for personal, non-commercial use only. The [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } -->如果在<span style="font-family: AR PL UMing CN,serif;">ubuntu</span>下用<span style="font-family: AR PL UMing CN,serif;">ssh</span>命令登录主机的话，总是会要求你输入密码，那么有什么法子可以不用密码直接登录呢？</p>
<p>原先我用的是在主机<span style="font-family: AR PL UMing CN,serif;">cpanel</span>的<span style="font-family: AR PL UMing CN,serif;">ssh-key manage</span>里，先创建一个<span style="font-family: AR PL UMing CN,serif;">key</span>，然后下载<span style="font-family: AR PL UMing CN,serif;">private key</span>，放在<span style="font-family: AR PL UMing CN,serif;">ubuntu</span>下的<span style="font-family: AR PL UMing CN,serif;">~/.ssh</span>目录下，这样即可。</p>
<p>如图：</p>
<p><a class="tt-flickr tt-flickr-Large" title="cpanel ssh" href="http://www.flickr.com/photos/coodar/4271703542/"><img class="alignnone" src="http://farm5.static.flickr.com/4016/4271703542_930df72ce5_o.png" alt="cpanel ssh" width="749" height="396" /></a></p>
<p>第二种方法就是在ubuntu本地创建key，然后上传到sever上。</p>
<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<ol>
<li>首先，先在 <span style="font-family: AR PL UMing CN,serif;">Client </span>上面创建 <span style="font-family: AR PL UMing CN,serif;">Public Key </span>跟 	<span style="font-family: AR PL UMing CN,serif;">Private Key </span>这两把钥匙，利用的指令为 	<span style="font-family: AR PL UMing CN,serif;">ssh-keygen </span>这个命令；再来，将 <span style="font-family: AR PL UMing CN,serif;">Private 	Key </span>放在 <span style="font-family: AR PL UMing CN,serif;">Client </span>上面的家目录，亦即 <span style="font-family: AR PL UMing CN,serif;">$HOME/.ssh/ </span>， 并且修改权限为仅有该 <span style="font-family: AR PL UMing CN,serif;">User </span>可读的状态；
<p><a class="tt-flickr tt-flickr-Large" title="创建key" href="http://www.flickr.com/photos/coodar/4271704228/"><img class="alignnone" src="http://farm5.static.flickr.com/4061/4271704228_9aa6878cac_o.png" alt="创建key" width="616" height="350" /></a></li>
<li>最后，将那把 <span style="font-family: AR PL UMing CN,serif;">Public 	Key </span>放在任何一个您想要用来登录的主机的 	<span style="font-family: AR PL UMing CN,serif;">Server </span>端的某 <span style="font-family: AR PL UMing CN,serif;">User </span>的家目录内之 <span style="font-family: AR PL UMing CN,serif;">.ssh/ </span>里面的认证文件即可完成整个程序。<a class="tt-flickr tt-flickr-Large" title="上传公钥" href="http://www.flickr.com/photos/coodar/4271704446/"><img class="alignnone" src="http://farm3.static.flickr.com/2746/4271704446_0f0d181e42_o.png" alt="上传公钥" width="577" height="190" /></a></li>
<li>测试一下。输入 ssh test@linux。</li>
</ol>
<p>注释：test为你的id。test2是你的ubuntu机器名字。linux就是主机服务器地址了。上图中192.168.0.2是主机ip地址，写域名也行。</p>
<p>两种方法都可以，任选一个。如果你喜欢命令行就用第二种方法吧。呵呵。</p>
<p>可具体参考<a href="http://onlyn.info/zdc">鸟哥的linux私房菜</a>。</p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://onlyn.info/2010/01/13/%e5%88%b6%e4%bd%9c%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e5%8f%af%e7%ab%8b%e5%8d%b3%e7%99%bb%e5%85%a5%e7%9a%84-ssh-%e7%94%a8%e6%88%b7/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>
