<?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>blog.ryara.net &#187; yubikey</title>
	<atom:link href="http://blog.ryara.net/tag/yubikey/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ryara.net</link>
	<description></description>
	<lastBuildDate>Thu, 01 Jul 2010 10:43:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ebuild for yubikey pam auth</title>
		<link>http://blog.ryara.net/2009/01/13/ebuild-for-yubikey-pam-auth/</link>
		<comments>http://blog.ryara.net/2009/01/13/ebuild-for-yubikey-pam-auth/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 20:09:49 +0000</pubDate>
		<dc:creator>tobbez</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[yubikey]]></category>

		<guid isPermaLink="false">http://blog.ryara.net/2009/01/13/ebuild-for-yubikey-pam-auth/</guid>
		<description><![CDATA[(If you don&#8217;t know what a yubikey is, have a look here) So I wrote up ebuilds for yubico-pam and its dependency yubico-c-client. You can get them here. Just extract the tarball into your portage overlay and emerge pam_yubico. If &#8230; <a href="http://blog.ryara.net/2009/01/13/ebuild-for-yubikey-pam-auth/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>(If you don&#8217;t know what a yubikey is, have a look <a href="http://yubico.com/products/yubikey/">here</a>)</p>
<p>So I wrote up ebuilds for <a href="http://code.google.com/p/yubico-pam/">yubico-pam</a> and its dependency <a href="http://code.google.com/p/yubico-c-client/">yubico-c-client</a>. You can get them <a href='http://blog.ryara.net/wp-content/uploads/2009/01/pam_yubico-ebuildstar.gz' title='Yubico PAM ebuilds'>here</a>.</p>
<p>Just extract the tarball into your portage overlay and emerge pam_yubico. If you don&#8217;t have an overlay, then just do this (as root):<br />
<code>
<pre>mkdir /usr/local/portage/
echo 'PORTDIR_OVERLAY="/usr/local/portage/"' >> /etc/make.conf
tar xvzf pam_yubico-ebuildstar.gz -C /usr/local/portage/
emerge pam_yubico
</pre>
<p></code></p>
<p>For myself I configured sshd to be able to login using either my yubikey or a normal password. I will describe how to do that &#8211; if you need some other configuration have a look at the PAM module&#8217;s site (mentioned above).</p>
<ol>
<li>You will need to get your yubico client id. The only way I know of to do this is through the <a href="https://api.yubico.com/yms/index.php">YMS</a>.
</li>
<li>Configure PAM to make ssh use the newly installed module. This by prepending <code>auth sufficient pam_yubico.so id=16 try_first_pass</code> to <code>/etc/pam.d/sshd</code>. Be sure to change 16 to the ID you aquired in step 1.
</li>
<li>Add your yubikey id to the file pam_yubico looks in, namely <code>~/.yubico/authorized_yubikeys</code>. Create the file with and add the line <code>user:yubikey_id</code>. The yubikey id is the first 12 characters from the OTPs it generates.</li>
</ol>
<p>And that&#8217;s it. You should now be able to log in over SSH using either your regular password or your yubikey.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ryara.net/2009/01/13/ebuild-for-yubikey-pam-auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
