<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>wolfg&#039;s Weblog &#187; ssh</title>
	<atom:link href="http://guoyong.org/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://guoyong.org</link>
	<description>wolfg&#039;s journey with open source, linux, programming, sysadm ...</description>
	<lastBuildDate>Thu, 04 Aug 2011 15:02:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/cn/</creativeCommons:license>		<item>
		<title>SSH:不用密码登录</title>
		<link>http://guoyong.org/2010/01/30/569</link>
		<comments>http://guoyong.org/2010/01/30/569#comments</comments>
		<pubDate>Sat, 30 Jan 2010 08:31:22 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=569</guid>
		<description><![CDATA[用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录： 1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。 $ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/guoyong/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/guoyong/.ssh/id_rsa.Your public key has been saved in /home/guoyong/.ssh/id_rsa.pub. 2. 用ssh-copy-id命令把公钥复制到远程主机上，user就是你登录用的用户名 $ ssh-cody-id user@remotehost 3. 验证一下吧 $ ssh user@remotehost echo &#34;it works&#34;]]></description>
			<content:encoded><![CDATA[<p>用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录：<br />
1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。</p>
<div class="hl-surround"><div class="hl-main">$ ssh-keygen<br />Generating public/private rsa key pair.<br />Enter file in which to save the key (/home/guoyong/.ssh/id_rsa): <br />Enter passphrase (empty for no passphrase): <br />Enter same passphrase again: <br />Your identification has been saved in /home/guoyong/.ssh/id_rsa.<br />Your public key has been saved in /home/guoyong/.ssh/id_rsa.pub.</div></div>
<p>2. 用ssh-copy-id命令把公钥复制到远程主机上，user就是你登录用的用户名</p>
<div class="hl-surround"><div class="hl-main">$ ssh-cody-id user@remotehost</div></div>
<p>3. 验证一下吧</p>
<div class="hl-surround"><div class="hl-main">$ ssh user@remotehost echo &quot;it works&quot;</div></div>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.org/2010/01/30/569/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

