<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=11&amp;t=210" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-02-07T06:11:52+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=11&amp;t=210</id>
<entry>
<author><name><![CDATA[cmoates]]></name></author>
<updated>2009-02-07T06:11:52+01:00</updated>
<published>2009-02-07T06:11:52+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=210&amp;p=1051#p1051</id>
<link href="https://forum.yubico.com/viewtopic.php?t=210&amp;p=1051#p1051"/>
<title type="html"><![CDATA[Re: Lightweight ssh linux login for yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=210&amp;p=1051#p1051"><![CDATA[
I just started a separate thread for that. Would be nice to know if the original poster was on 64 bit. I'm failing on both 64 bit Centos and Ubuntu at the moment, and will try Fedora 10 64 bit in the morning to verify.<br /><br />32 bit version of Debian, Ubuntu, and Fedora all work fine.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=406">cmoates</a> — Sat Feb 07, 2009 6:11 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[lucienboland]]></name></author>
<updated>2009-02-06T15:59:21+01:00</updated>
<published>2009-02-06T15:59:21+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=210&amp;p=1043#p1043</id>
<link href="https://forum.yubico.com/viewtopic.php?t=210&amp;p=1043#p1043"/>
<title type="html"><![CDATA[Re: Lightweight ssh linux login for yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=210&amp;p=1043#p1043"><![CDATA[
Good job on the script work around. I'm also experiencing segfaults with the pam module compiled on RHEL5 64bit. I'm using the latest subversion google code source code.<br /><br />Is anyone else also trying to figure out why the pam module is segfaulting?<br /><br />Cheers<br />Lucien<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=419">lucienboland</a> — Fri Feb 06, 2009 3:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[snizfast]]></name></author>
<updated>2009-01-30T17:18:26+01:00</updated>
<published>2009-01-30T17:18:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=210&amp;p=993#p993</id>
<link href="https://forum.yubico.com/viewtopic.php?t=210&amp;p=993#p993"/>
<title type="html"><![CDATA[Re: Lightweight ssh linux login for yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=210&amp;p=993#p993"><![CDATA[
I had issues with the official PAM solution.  The pam part worked fine but sshd would keep segfaulting.  I think this will be less intrusive to get working on some of my work servers.  I liked this because of its simplicity but wanted to be sure that it was my Yubikey not just some random one.  There was not facility to verify this is my key.  I did not see any way to add my key id to the api.yubico.com url.  I used a simple check instead:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#!/bin/bash<br /><br />trap &quot;pkill -HUP -g 0&quot; INT<br /><br /># change this to your specific ID<br />ID=79<br /><br />echo -n &quot;Press key then enter ctrl-d: &quot; &gt; /dev/stderr<br /><br />otp=`tr -c -d a-z &lt; /dev/tty`<br /><br />#Verifying that this is MY yubikey, not just some random one.<br />if echo $otp | grep staticpartofkey &gt; /dev/null<br />then<br />echo Greetings<br />else<br />#Failed test<br />echo Intruders are not permitted, Begone with you &gt; /dev/stderr<br />pkill -HUP -g 0<br />exit 3<br />fi<br /><br />#Check the Yubi<br />if wget -O - &quot;https://api.yubico.com/wsapi/verify?id=$ID&amp;otp=$otp&quot; 2&gt; /dev/null | grep status=OK &gt; /dev/null<br />then<br />echo Yubikey ok &gt; /dev/stderr<br />exec /bin/bash<br />fi<br /><br />#Failed test<br />echo bad Yubikey &gt; /dev/stderr<br />pkill -HUP -g 0<br />exit 3<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=399">snizfast</a> — Fri Jan 30, 2009 5:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Simon]]></name></author>
<updated>2008-11-27T11:56:43+01:00</updated>
<published>2008-11-27T11:56:43+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=210&amp;p=808#p808</id>
<link href="https://forum.yubico.com/viewtopic.php?t=210&amp;p=808#p808"/>
<title type="html"><![CDATA[Re: Lightweight ssh linux login for yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=210&amp;p=808#p808"><![CDATA[
Cool.  That's a more lightweight solution than PAM, thanks for sharing.<br /><br />/Simon<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2">Simon</a> — Thu Nov 27, 2008 11:56 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jonr]]></name></author>
<updated>2008-11-25T07:35:11+01:00</updated>
<published>2008-11-25T07:35:11+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=210&amp;p=801#p801</id>
<link href="https://forum.yubico.com/viewtopic.php?t=210&amp;p=801#p801"/>
<title type="html"><![CDATA[Lightweight ssh linux login for yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=210&amp;p=801#p801"><![CDATA[
I had problems with the pam yubikey module so I wrote an extremely simple script to force the use of a yubikey for ssh login to a linux box.  You have to enter your normal password and then the yubikey.   <br /><br />Is it secure?  As secure as just the password; more than that, I can't say.<br /><br />To install, take this code and put it into ~/.ssh/rc<br />---cut here--<br />#!/bin/bash<br /><br />trap &quot;pkill -HUP -g 0&quot; INT<br /><br /># change this to your specific ID<br />ID=79<br /><br />echo -n &quot;Press key then enter ctrl-d: &quot; &gt; /dev/stderr<br /><br />otp=`tr -c -d a-z &lt; /dev/tty`<br /><br />if wget -O - &quot;https://api.yubico.com/wsapi/verify?id=$ID&amp;otp=$otp&quot; 2&gt; /dev/null | grep status=OK  &gt; /dev/null<br />then<br />   echo Yubikey ok &gt; /dev/stderr<br />   exec /bin/bash<br />fi<br /><br />echo bad &gt; /dev/stderr<br />pkill -HUP -g 0<br />exit 3<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=314">jonr</a> — Tue Nov 25, 2008 7:35 am</p><hr />
]]></content>
</entry>
</feed>