<?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=5&amp;t=721" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-11-10T18:47:35+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=721</id>
<entry>
<author><name><![CDATA[tore]]></name></author>
<updated>2011-11-10T18:47:35+01:00</updated>
<published>2011-11-10T18:47:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=721&amp;p=2834#p2834</id>
<link href="https://forum.yubico.com/viewtopic.php?t=721&amp;p=2834#p2834"/>
<title type="html"><![CDATA[Re: Problems with PAM, 2FA, SSH, FreeBSD 8.2]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=721&amp;p=2834#p2834"><![CDATA[
Of course, I found the error:<br /><br />When using PAM with SSH, the manual for sshd_config states that ChallengeResponseAuthentication and PasswordAuthentication should not have the same value.<br /><br />ChallengeResponseAuthentication no<br />PasswordAuthentication yes<br />UsePam yes<br /><br />Now it works with username, unix_password + OTP.<br /><br />As far as I can understand, you cannot use the yubico PAM to do this:<br /><br />tore:~ tore$ ssh -l root 10.1.1.24<br />Yubikey for `root': <br />Password:<br />pam_unix: pam_sm_authenticate: UNIX authentication refused<br /><br />Or?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1862">tore</a> — Thu Nov 10, 2011 6:47 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tore]]></name></author>
<updated>2011-11-09T21:35:57+01:00</updated>
<published>2011-11-09T21:35:57+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=721&amp;p=2833#p2833</id>
<link href="https://forum.yubico.com/viewtopic.php?t=721&amp;p=2833#p2833"/>
<title type="html"><![CDATA[Problems with PAM, 2FA, SSH, FreeBSD 8.2]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=721&amp;p=2833#p2833"><![CDATA[
Hi folks,<br /><br />Have some issues with getting PAM to work with SSH and 2FA.<br /><br />sshd_config:<br />UsePam yes<br />ChallengeResponseAuthentication yes<br />PasswordAuthentication yes<br /><br />pam.d/sshd:<br />auth requisite pam_yubico.so id=X debug authfile=/etc/yubikey_mappings key=X<br />auth required pam_unix.so debug use_first_pass<br /><br />/var/log/messages:<br />Nov  9 20:29:17  sshd[94332]: fatal: PAM: pam_setcred(): failed to retrieve user credentials<br /><br />I get this error when I do a SSH to the box:<br /><br />tore:~ tore$ ssh -l root 10.1.1.24<br />Yubikey for `root': /etc/passwd password + OTP<br />Connection to 10.1.1.24 closed by remote host.<br />Connection to 10.1.1.24 closed.<br /><br />If I only provide my OTP i get this error:<br />Nov  9 20:31:05  sshd[94342]: error: PAM: authentication error for root from 10.1.1.2<br />tore:~ tore$ ssh -l root 10.1.1.24<br />Yubikey for `root': <br />Yubikey for `root': <br />Yubikey for `root': <br />root@10.1.1.24's password: <br />Permission denied, please try again.<br />root@10.1.1.24's password: <br />Received disconnect from 10.1.1.24: 2: Too many authentication failures for root<br /><br /><br />I checked out the latest source code two days ago, regarding yubico-c-client and yubico-pam.<br /><br />What am I missing?<br /><br />Thanks<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1862">tore</a> — Wed Nov 09, 2011 9:35 pm</p><hr />
]]></content>
</entry>
</feed>