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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-11-14T22:32:13+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=23&amp;t=2088</id>
<entry>
<author><name><![CDATA[Caligatio]]></name></author>
<updated>2015-11-14T22:32:13+01:00</updated>
<published>2015-11-14T22:32:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2088&amp;p=7971#p7971</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2088&amp;p=7971#p7971"/>
<title type="html"><![CDATA[[Q?] Setting up SSH for publickey+passwd OR passwd+yubikey]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2088&amp;p=7971#p7971"><![CDATA[
I just received my Yubikey in the mail today and successfully got 2FA working with SSH for publickey OR password+yubikey (keyboard-interactive).  While I was reading a bunch of sites trying to figure out how to set this up, I stumbled upon &quot;AuthenticationMethods&quot; for SSH configs and got intrigued: could I set up SSH to require publickey+password OR password+yubikey.  Unfortunately I couldn't figure it out.<br /><br />My attempted config was:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">PubkeyAuthentication yes<br />PasswordAuthentication yes<br />ChallengeResponseAuthentication yes<br />AuthenticationMethods publickey,password keyboard-interactive:pam<br />UsePAM Yes</div><br /><br />What happened is that it took my publickey and then spit out:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Further authentication required<br />Using keyboard-interactive authentication.<br /></div><br /><br />I put in my password but then it also prompted for my OTP... which I don't want to have to use if I have my publickey.<br /><br />Does anyone have any ideas how to solve this?  It appears PAM is taking over for &quot;password&quot; authentication which I don't know how to stop.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4026">Caligatio</a> — Sat Nov 14, 2015 10:32 pm</p><hr />
]]></content>
</entry>
</feed>