<p dir="ltr"><br>
On Jan 15, 2015 7:12 PM, &quot;Glenn Holmer&quot; &lt;<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On 01/15/2015 07:26 PM, Pete Travis wrote:<br>
&gt; &gt;<br>
&gt; &gt; On Jan 15, 2015 11:49 AM, &quot;Glenn Holmer&quot; &lt;<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a><br>
&gt; &gt; &lt;mailto:<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a>&gt;&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 12/31/2014 03:40 PM, Flavio Leitner wrote:<br>
&gt; &gt;&gt; &gt; On Wednesday, December 31, 2014 03:21:46 PM Glenn Holmer wrote:<br>
&gt; &gt;&gt; &gt;&gt; On 12/31/2014 02:33 PM, Flavio Leitner wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt; On Wednesday, December 31, 2014 02:11:38 PM Glenn Holmer wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; I&#39;m trying to connect to another machine using virt-manager (File/Add<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; Connection). I select QEMU/KVM as hypervisor, &quot;connect to remote<br>
&gt; &gt; host&quot;,<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; method SSH, and a username and hostname on the remote machine. The<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; result is always that I get prompted for my passphrase, but then see<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; &quot;authentication failed: no agent is available to authenticate&quot;. I get<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; this going from either machine to the other.<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; Virtualization is set up OK because I can run virtual machines on<br>
&gt; &gt; both<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; VM hosts. SSH is set up OK, I can ssh with public key in both<br>
&gt; &gt; directions<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; both as myself and as root. I tried &quot;setenforce 0&quot; on both<br>
&gt; &gt; machines to<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; see if SELinux was blocking it, but the result was the same.<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; What am I missing?<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; Do you see the process ssh-agent running?<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; I see this on both machines:<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c &quot;/usr/bin/startkde&quot;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Right, do you see your identity there?<br>
&gt; &gt;&gt; &gt; $ ssh-add -l<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; If so, is there any chance of you are running the virt-manager out<br>
&gt; &gt; of the<br>
&gt; &gt;&gt; &gt; established session?  I&#39;d start the virt-manager on the same shell<br>
&gt; &gt; running<br>
&gt; &gt;&gt; &gt; the ssh-add above to confirm.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I finally got some more time to work on this. At first, it seemed like a<br>
&gt; &gt;&gt; KDE thing, as &quot;ssh-add -l&quot; didn&#39;t show anything when I first logged in.<br>
&gt; &gt;&gt; So I added ssh-add to the list of startup programs, and now the KDE<br>
&gt; &gt;&gt; version of ssh-askpass prompts me for a password when I log in, and I<br>
&gt; &gt;&gt; can ssh to the remote machine without entering a passphrase for the key.<br>
&gt; &gt;&gt; But I still get the same error when I try to create a new KVM<br>
&gt; &gt;&gt; connection! Anybody have any other ideas?<br>
&gt;<br>
&gt; &gt; If you are using a regular user, do something like this on the host:<br>
&gt; &gt;<br>
&gt; &gt; <a href="https://fedorapeople.org/groups/docs/cookbook/#access-to-libvirt-without-root-privileges">https://fedorapeople.org/groups/docs/cookbook/#access-to-libvirt-without-root-privileges</a><br>
&gt;<br>
&gt; Thanks, that solved it.<br>
&gt;<br>
&gt; --<br>
&gt; Glenn Holmer (Linux registered user #16682)<br>
&gt; &quot;After the vintage season came the aftermath -- and Cenbe.&quot;<br>
&gt; --<br>
&gt;</p>
<p dir="ltr">Great, glad I could help.</p>
<p dir="ltr">BTW, the Cookbook is WIP and not formally published because there isn&#39;t a lot of content yet.  Contributions welcome :)</p>
<p dir="ltr">--Pete</p>