<?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=2485" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-11-20T19:51:01+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=23&amp;t=2485</id>
<entry>
<author><name><![CDATA[paulina]]></name></author>
<updated>2016-11-20T19:51:01+01:00</updated>
<published>2016-11-20T19:51:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9166#p9166</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9166#p9166"/>
<title type="html"><![CDATA[Re: [QUESTION] YubiKey 4 on MacOS wrong key in gpg-agent]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9166#p9166"><![CDATA[
Hi,<br /><br />Thanks for the response. I don't mind links, it's just this specific page seems to be reported as containing malware. <br /><br />I'm simply trying to use my gpg keys from my yubi as rsa keys for ssh. And it works, except for some reason gpg-agent uses my encryption key and not my authentication key from my yubi for this. Is there any obvious reason why this would happen?<br /><br />Thanks.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4546">paulina</a> — Sun Nov 20, 2016 7:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-11-20T18:21:16+01:00</updated>
<published>2016-11-20T18:21:16+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9164#p9164</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9164#p9164"/>
<title type="html"><![CDATA[Re: [QUESTION] YubiKey 4 on MacOS wrong key in gpg-agent]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9164#p9164"><![CDATA[
The link you're referring to on the SSH page is just a third party website:<br /><br /><!-- m --><a class="postlink" href="http://florin.myip.org/blog/easy-multifactor-authentication-ssh-using-yubikey-neo-tokens">http://florin.myip.org/blog/easy-multif ... neo-tokens</a><!-- m --><br /><br />(if you don't like links, try searching &quot;Easy multifactor authentication for SSH using YubiKey NEO tokens&quot;)<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Sun Nov 20, 2016 6:21 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[paulina]]></name></author>
<updated>2016-11-20T17:50:52+01:00</updated>
<published>2016-11-20T17:50:52+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9163#p9163</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9163#p9163"/>
<title type="html"><![CDATA[[QUESTION] YubiKey 4 on MacOS wrong key in gpg-agent]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2485&amp;p=9163#p9163"><![CDATA[
Hello everyone,<br /><br />I have a new YubiKey 4 and I'm on macOS Sierra. I installed gpgtools (<!-- m --><a class="postlink" href="https://gpgtools.org/">https://gpgtools.org/</a><!-- m -->) to configure gpg keys on my yubikey - seems to work great. <br />I wanted to configure my SSH to authenticate with my keys on the yubikey - this basically works out of the box now with gpg tools, the only thing I had to set up was ~/.gnupg/gpg-agent.conf:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac<br />enable-ssh-support<br />write-env-file<br />use-standard-socket<br /></div><br /><br />and my .bash_profile<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">source &quot;$HOME/.gpg-agent-info&quot;<br />export GPG_AGENT_INFO<br />export SSH_AUTH_SOCK<br />export SSH_AGENT_PID<br /></div><br /><br />Now ssh-add -L shows a key exposed from my yubi, and if I understand correctly this should be my authentication key?<br />If I run gpgkey2ssh with the id of the last key shown by gpg --card-status (should be auth key), <strong>it generates a different output than what's shown by ssh-add</strong>. <br /><strong>If I run gpgkey2ssh with the ID of my encryption key (second key shown by gpg --card-status) - it matches the key exposed to ssh-add</strong>.<br /><br />So, basically I login via SSH with my encryption key instead of my authentication key. What did I do wrong?<br /><br />I wanted to check out the walkthrough linked here: <!-- m --><a class="postlink" href="https://developers.yubico.com/PGP/SSH_authentication/">https://developers.yubico.com/PGP/SSH_authentication/</a><!-- m --> but antivirus software freaks out when I try to open the link for OS X.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4546">paulina</a> — Sun Nov 20, 2016 5:50 pm</p><hr />
]]></content>
</entry>
</feed>