On Jan 15, 2015 11:49 AM, "Glenn Holmer" <shadowm@xxxxxxxxxxxx> wrote:
>
> On 12/31/2014 03:40 PM, Flavio Leitner wrote:
> > On Wednesday, December 31, 2014 03:21:46 PM Glenn Holmer wrote:
> >> On 12/31/2014 02:33 PM, Flavio Leitner wrote:
> >>> On Wednesday, December 31, 2014 02:11:38 PM Glenn Holmer wrote:
> >>>> I'm trying to connect to another machine using virt-manager (File/Add
> >>>> Connection). I select QEMU/KVM as hypervisor, "connect to remote host",
> >>>> method SSH, and a username and hostname on the remote machine. The
> >>>> result is always that I get prompted for my passphrase, but then see
> >>>> "authentication failed: no agent is available to authenticate". I get
> >>>> this going from either machine to the other.
> >>>>
> >>>> Virtualization is set up OK because I can run virtual machines on both
> >>>> VM hosts. SSH is set up OK, I can ssh with public key in both directions
> >>>> both as myself and as root. I tried "setenforce 0" on both machines to
> >>>> see if SELinux was blocking it, but the result was the same.
> >>>>
> >>>> What am I missing?
> >>>
> >>> Do you see the process ssh-agent running?
> >>
> >> I see this on both machines:
> >>
> >> /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/startkde"
> >>
> >
> > Right, do you see your identity there?
> > $ ssh-add -l
> >
> > If so, is there any chance of you are running the virt-manager out of the
> > established session? I'd start the virt-manager on the same shell running
> > the ssh-add above to confirm.
>
> I finally got some more time to work on this. At first, it seemed like a
> KDE thing, as "ssh-add -l" didn't show anything when I first logged in.
> So I added ssh-add to the list of startup programs, and now the KDE
> version of ssh-askpass prompts me for a password when I log in, and I
> can ssh to the remote machine without entering a passphrase for the key.
> But I still get the same error when I try to create a new KVM
> connection! Anybody have any other ideas?
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
> --
If you are using a regular user, do something like this on the host:
https://fedorapeople.org/groups/docs/cookbook/#access-to-libvirt-without-root-privileges
--Pete
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org