1
0
TL;DR: I seem to be too stupid to use PolKit authentication over ssh?
I have two machines (running Fedora) with ssh public-key logins to a user with administrative privileges (groups e.g. wheel
, adm
).
When logging in locally on the “server” machine, I can run virt-manager
to access various VM's that exist on it. However, when connecting via ssh -X -C
server, I find that virt-manager
immediately refuses to connect to the virtual machines saying that:
Virtual Machine Manager Connection Failure (on server)
Unable to connect to libvirt.
authentication failed: polkit: polkit\56retains_authorization_after_challenge=1 Authorization requires authentication but no agent is available.
I've tried the naïve approach of launching it like this:
virt-manager & pkttyagent -p $(pgrep virt-manager)
… but all I'm left with is:
pkttyagent
is silent;virt-manager
exits as soon as I close the error dialog box.
Can anyone suggest a way to, perhaps, register pkttyagent
prior to running virt-manager
, or else register another authentication agent over ssh -X
?
→ It should be noted that running virt-manager
as root
remotely isn't even an option (effectively) because I have VM's that run under my own user account (qemu
user-mode, accessible via Gnome Boxes) as well as system-wide ones, and the local-user definitions aren't accessible by root
. Even if I didn't fear the idea of running an X app as root
in the first place…
That's something I'd tried (with the
&
rather than;
to allow it to run in background), but did not seem to work… – BRPocock – 2014-07-10T18:01:17.4471There's a different between & and ;. The ; is in my case the correct way. Do you get by the way an error message when using ;? – Abdelouahed Haitoute – 2014-07-10T22:14:33.583