<?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>Piece of Unix Hints &#187; OTP</title>
	<atom:link href="http://hints.jeb.be/tag/otp/feed/" rel="self" type="application/rss+xml" />
	<link>http://hints.jeb.be</link>
	<description>hints.jeb.be</description>
	<lastBuildDate>Fri, 04 Dec 2009 20:35:51 +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>One Time Password authentication system</title>
		<link>http://hints.jeb.be/2008/12/17/one-time-password-authentication-system/</link>
		<comments>http://hints.jeb.be/2008/12/17/one-time-password-authentication-system/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:18:25 +0000</pubDate>
		<dc:creator>Jeb</dc:creator>
				<category><![CDATA[NetBSD]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[OTP]]></category>

		<guid isPermaLink="false">http://hints.jeb.be/?p=6</guid>
		<description><![CDATA[S/key is an one time password authentication (OTP) system that prevent you from sending password in clear. It&#8217;s especially useful with system like telnet. It&#8217;s quite easy to setup on NetBSD. To start, run # skeyinit -s &#60;user&#62; [Adding user] You need the 6 english words generated from the "skey" command. Enter sequence count from [...]]]></description>
			<content:encoded><![CDATA[<p>S/key is an one time password authentication (OTP) system that prevent you from sending password in clear.<br /> It&#8217;s especially useful with system like telnet.
</p>
<p>
It&#8217;s quite easy to setup on NetBSD. To start, run
</p>
<pre class="wiki"># skeyinit -s &lt;user&gt;
[Adding user]
You need the 6 english words generated from the "skey" command.
Enter sequence count from 1 to 10000: Enter anything you want
Enter new seed [default NetB14423]: Just press return or enter something else
otp-md4 &lt;sequence count&gt; &lt;seed&gt;
s/key access password: &lt;Follow instruction bellow&gt;
</pre>
<p>
To get the s/key access password, you have to run the following command but <strong>be careful to do not run it on the remote host through telnet</strong>, <span class="underline">run it locally</span> !
</p>
<pre class="wiki"># skey &lt;sequence count you entered for skeyinit&gt; &lt;seed you use in skeyinit&gt;
</pre>
<p>
This will ask you for a password (use a secure one) and give you 6 english word, use them to complete the &#8220;s/key access password:&#8221; question.
</p>
<p>
Your S/Key authentification is ready !
</p>
<hr />
<p>
Next time you do a telnet connexion to the host you will get this prompt
</p>
<pre class="wiki">login: &lt;put your username&gt;
Password [otp-md4 &lt;random number&gt; &lt;seed you use in skeyinit&gt;]:
</pre>
<p>
To know the 6 english word password to use, you have to run the following command (on you local computer for example)
</p>
<pre class="wiki"># skey &lt;random number&gt; &lt;seed you use in skeyinit&gt;
</pre>
<p>
In fact the random number will be incremented by one each time you log in. You can easily generate (in advance) all 6 english word password for number X to Z, with the following command (another time, run this locally) :
</p>
<pre class="wiki">skey -n (Z-X) Z &lt;seed you use in skeyinit&gt;
</pre>
<p>
Z-X is the number of password to generate. Z mean the last generated password is for random number Z
</p>
<p>
N.B: <strong>You clear password will still work if you use it.</strong>
</p>
<hr />
<p>
Related link: <a class="ext-link" href="http://en.wikipedia.org/wiki/S/Key" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/S/Key?referer=');"><span class="icon">S/Key on Wikipedia</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://hints.jeb.be/2008/12/17/one-time-password-authentication-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
