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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-12-10T11:19:30+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2092</id>
<entry>
<author><name><![CDATA[hiviah]]></name></author>
<updated>2015-11-18T14:14:55+01:00</updated>
<published>2015-11-18T14:14:55+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7988#p7988</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7988#p7988"/>
<title type="html"><![CDATA[Re: [QUESTION] Ubuntu SSH won't offer PIV key when connectin]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7988#p7988"><![CDATA[
So this is definitely issue with Ubuntu's SSH. SSH+PIV works on Fedora 23 and Scientific Linux 6.7 and also works on Ubuntu when I compile SSH from source - tried latest OpenSSH 7.1p1 and it works.<br /><br />It seems that it's a regression in OpenSSH 6.6, using vanilla version also does not work. Version 6.9 works again. However it seems that you need to replace ssh-agent with the corresponding version to make PIN caching by ssh-agent work.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2457">hiviah</a> — Wed Nov 18, 2015 2:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[hiviah]]></name></author>
<updated>2015-12-10T11:19:30+01:00</updated>
<published>2015-11-16T14:22:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7977#p7977</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7977#p7977"/>
<title type="html"><![CDATA[[SOLVED] Ubuntu SSH won't offer PIV key when connecting]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2092&amp;p=7977#p7977"><![CDATA[
I've encountered strange bug when using SSH in Ubuntu 14.04: it won't offer the PIV key to the server even though it sees it.<br /><br />From <strong>ssh -v -I /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so host</strong>:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014<br />debug1: Reading configuration data /home/XXXXXXX<br />debug1: /home/XXXXXXX line 138: Applying options for host<br />debug1: Reading configuration data /etc/ssh/ssh_config<br />debug1: /etc/ssh/ssh_config line 19: Applying options for *<br />debug1: Hostname has changed; re-reading configuration<br />debug1: Reading configuration data /home/XXXXX<br />debug1: Reading configuration data /etc/ssh/ssh_config<br />debug1: /etc/ssh/ssh_config line 19: Applying options for *<br />debug1: Connecting to XXXXXXX &#91;XXXXXXXX&#93; port NNNN.<br />debug1: Connection established.<br />debug1: manufacturerID &lt;OpenSC (www.opensc-project.org)&gt; cryptokiVersion 2.20 libraryDescription &lt;Smart card PKCS#11 API&gt; libraryVersion 0.0<br />debug1: label &lt;PIV_II (PIV Card Holder pin)&gt; manufacturerID &lt;piv_II&gt; model &lt;PKCS#15 emulate&gt; serial &lt;00000000&gt; flags 0x40d<br />debug1: have 1 keys<br />debug1: pkcs11_provider_unref: 0x7f0c65728510 refcount 2<br />debug1: identity file /home/XXXXXXX type 1<br />debug1: identity file /home/XXXXXXX type -1<br />debug1: Enabling compatibility mode for protocol 2.0<br />debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3<br />debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3<br />debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000<br />debug1: SSH2_MSG_KEXINIT sent<br />debug1: SSH2_MSG_KEXINIT received<br />debug1: kex: server-&gt;client aes128-ctr hmac-md5 none<br />debug1: kex: client-&gt;server aes128-ctr hmac-md5 none<br />debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&lt;3072&lt;8192) sent<br />debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP<br />debug1: SSH2_MSG_KEX_DH_GEX_INIT sent<br />debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY<br />debug1: Server host key: RSA 2e:47:2d:9b:da:a6:eb:b3:7c:dd:89:32:7e:9f:14:18<br />debug1: checking without port identifier<br />debug1: Host 'XXXXXXXX' is known and matches the RSA host key.<br />debug1: Found key in /home/XXXXXX<br />debug1: found matching key w/out port<br />debug1: ssh_rsa_verify: signature correct<br />debug1: SSH2_MSG_NEWKEYS sent<br />debug1: expecting SSH2_MSG_NEWKEYS<br />debug1: SSH2_MSG_NEWKEYS received<br />debug1: Roaming not allowed by server<br />debug1: SSH2_MSG_SERVICE_REQUEST sent<br />debug1: SSH2_MSG_SERVICE_ACCEPT received<br />debug1: Authentications that can continue: publickey<br />debug1: Next authentication method: publickey<br />debug1: Offering RSA public key: /home/XXXXXX<br />debug1: Server accepts key: pkalg ssh-rsa blen 277<br />debug1: Authentication succeeded (publickey).<br /><br /></div><br /><br />The token is clearly recognized, it sees there is one key present, nevertheless server doesn't get it offered. I've tried also adding PKCS#11 library via ssh-add, but to no avail.<br /><br />Other smartcard (Feitian ePass 2003) worked with the same ssh and PKCS#11 library. The PIV token works on other machine with Scientific Linux 6.7. I can't figure out what makes the difference.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2457">hiviah</a> — Mon Nov 16, 2015 2:22 pm</p><hr />
]]></content>
</entry>
</feed>