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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-10-31T14:01:13+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=2750</id>
<entry>
<author><name><![CDATA[fedorz]]></name></author>
<updated>2017-10-31T14:01:13+01:00</updated>
<published>2017-10-31T14:01:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9928#p9928</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9928#p9928"/>
<title type="html"><![CDATA[Re: PAM issue with YubiCloud on CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9928#p9928"><![CDATA[
No response?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4929">fedorz</a> — Tue Oct 31, 2017 2:01 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fedorz]]></name></author>
<updated>2017-10-14T13:33:40+01:00</updated>
<published>2017-10-14T13:33:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9866#p9866</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9866#p9866"/>
<title type="html"><![CDATA[Re: PAM issue with YubiCloud on CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9866#p9866"><![CDATA[
Yes, that is correct, that is where I got the id and key I am using.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4929">fedorz</a> — Sat Oct 14, 2017 1:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mattlegitt]]></name></author>
<updated>2017-10-14T07:35:04+01:00</updated>
<published>2017-10-14T07:35:04+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9864#p9864</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9864#p9864"/>
<title type="html"><![CDATA[Re: PAM issue with YubiCloud on CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9864#p9864"><![CDATA[
Hello fedorz,<br /><br />Just to confirm you visited (<!-- m --><a class="postlink" href="https://upgrade.yubico.com/getapikey/">https://upgrade.yubico.com/getapikey/</a><!-- m -->) to receive a id and api key to replace in the following line?<br />auth required pam_yubico.so id=&quot;Replace with ID&quot; key=&quot;replace with API Key&quot; authfile=/etc/yubikey_mapping urllist=https://api.yubico.com/wsapi/2.0/verify debug<br /><br /><br />Best Regards,<br />Matthew<br />Yubico Support<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4123">mattlegitt</a> — Sat Oct 14, 2017 7:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fedorz]]></name></author>
<updated>2017-10-11T17:14:29+01:00</updated>
<published>2017-10-11T17:14:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9852#p9852</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9852#p9852"/>
<title type="html"><![CDATA[PAM issue with YubiCloud on CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2750&amp;p=9852#p9852"><![CDATA[
Hi,<br /><br />I am testing the OTP SSH PAM authentication against the public YubiCloud on CentOS 7 by running a VirtualBox CentOS 7 image.<br />Once the tests are successful, the plan is to roll this out to our actual servers.<br /><br /><strong>The issue I face that the PAM module fails authenticating, the debug log shows:</strong><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Oct 11 11:42:34 centos_test sshd&#91;1324&#93;: Server listening on 0.0.0.0 port 22.<br />Oct 11 11:42:34 centos_test systemd: Started OpenSSH server daemon.<br />Oct 11 11:42:34 centos_test polkitd&#91;619&#93;: Unregistered Authentication Agent for unix-process:1307:25035 (system bus name :1.21, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)<br />Oct 11 11:42:47 centos_test sshd&#91;1326&#93;: error: PAM: &#91;color=#0000FF&#93;Authentication service cannot retrieve authentication info for my_user from 127.0.0.1&#91;/color&#93;<br />Oct 11 11:42:48 centos_test sshd&#91;1326&#93;: Connection closed by 127.0.0.1 port 42490 &#91;preauth&#93;</div><br /><br />I don't understand why is it trying 127.0.0.1?<br /><br /><strong>My settings are the following:<br /></strong><br />/etc/pam.d/sshd:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">  auth required pam_yubico.so id=myid key=mykey authfile=/etc/yubikey_mapping urllist=https://api.yubico.com/wsapi/2.0/verify debug</div><br /><br />/etc/ssh/sshd_config:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">  PasswordAuthentication no<br />  ChallengeResponseAuthentication yes</div><br /><br /><strong>I can manually access the YubiCloud:</strong><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">wget -q -O - 'https://api.yubico.com/wsapi/2.0/verify?id=myid&amp;nonce=asdmalksdmlkasmdlkasakmsdaasklmdlak&amp;otp=dteffujehknhfjbrjnlnldnhcujbikngjrtgh'<br />h=svSvQsBDOgm9FFyTXjqNXHJiU=<br />t=2017-10-11T16:11:37Z0347<br />status=BAD_OTP</div><br /><br />Network settings:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN qlen 1<br />    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br />    inet 127.0.0.1/8 scope host lo<br />       valid_lft forever preferred_lft forever<br />2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000<br />    link/ether 08:00:27:c6:0f:7d brd ff:ff:ff:ff:ff:ff<br />    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3<br />       valid_lft 85120sec preferred_lft 85120sec</div><br /><br /><br />What looks odd to me in the debug logs, that is seemingly trying to verify the authentication against 127.0.0.1.<br /><br />Any idea what might be wrong?<br /><br />Thanks<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4929">fedorz</a> — Wed Oct 11, 2017 5:14 pm</p><hr />
]]></content>
</entry>
</feed>